Skip to content
  • Hjem
  • Seneste
  • Etiketter
  • Populære
  • Verden
  • Bruger
  • Grupper
Temaer
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Kollaps
FARVEL BIG TECH
  1. Forside
  2. Ikke-kategoriseret
  3. I like how Windows managed the 32bit/64bit migration in the most sensible way, by making us pick from two copies of every installer/binary forever

I like how Windows managed the 32bit/64bit migration in the most sensible way, by making us pick from two copies of every installer/binary forever

Planlagt Fastgjort Låst Flyttet Ikke-kategoriseret
38 Indlæg 19 Posters 0 Visninger
  • Ældste til nyeste
  • Nyeste til ældste
  • Most Votes
Svar
  • Svar som emne
Login for at svare
Denne tråd er blevet slettet. Kun brugere med emne behandlings privilegier kan se den.
  • foone@digipres.clubF foone@digipres.club

    so you could fat-binary a program to run on DOS/win32/win64 this way, by making it a 32bit program which win64 can run though backwards compatibility.

    I'm not sure if you can include win16 though: it won't run the DOS stub, and it'll not be able to run the win32 version.

    Unless you can set up win32s on win16 in such a way that it works in both 16bit windowses (through win32s) and 32bit-native windowses

    foone@digipres.clubF This user is from outside of this forum
    foone@digipres.clubF This user is from outside of this forum
    foone@digipres.club
    wrote sidst redigeret af
    #28

    https://mastodon.social/@dosnostalgic/116195465538703931

    jernej__s@infosec.exchangeJ 1 Reply Last reply
    0
    • max@peering.socialM max@peering.social

      RE: https://digipres.club/@foone/116195447625031209

      @foone Does ARM somehow also fit in?

      foone@digipres.clubF This user is from outside of this forum
      foone@digipres.clubF This user is from outside of this forum
      foone@digipres.club
      wrote sidst redigeret af
      #29

      @max presumably but I know nothing about windows-on-ARM, I don't believe in it.

      1 Reply Last reply
      0
      • foone@digipres.clubF foone@digipres.club

        fun fact: although that DOS stub usually just says that and quits, there's nothing that stops it from doing other things.

        You could write a program that runs on DOS and win64, it'd just need to be implemented twice and embedded in the same binary

        dryak@mstdn.scienceD This user is from outside of this forum
        dryak@mstdn.scienceD This user is from outside of this forum
        dryak@mstdn.science
        wrote sidst redigeret af
        #30

        @foone that was the whole shtick of the HX DOS Extender.

        The DOS stub could start it, and in turn that extender supports enough Win32 API to allow some limited software to run.

        And I think I vaguely remember some other software doing crazy stuff with their DOS stubs.

        1 Reply Last reply
        0
        • foone@digipres.clubF foone@digipres.club

          fun fact: although that DOS stub usually just says that and quits, there's nothing that stops it from doing other things.

          You could write a program that runs on DOS and win64, it'd just need to be implemented twice and embedded in the same binary

          kawa@mas.toK This user is from outside of this forum
          kawa@mas.toK This user is from outside of this forum
          kawa@mas.to
          wrote sidst redigeret af
          #31

          @foone I remember Visual Basic 3.0 "correcting" by trying to run Windows, and telling Windows to run VB in turn on startup.

          1 Reply Last reply
          0
          • foone@digipres.clubF foone@digipres.club

            I wonder if it still does that for 64bit EXEs?

            jernej__s@infosec.exchangeJ This user is from outside of this forum
            jernej__s@infosec.exchangeJ This user is from outside of this forum
            jernej__s@infosec.exchange
            wrote sidst redigeret af
            #32

            @foone Not just 64-bit EXEs, EFI binaries also usually (but not always) contain the DOS stub.

            1 Reply Last reply
            0
            • foone@digipres.clubF foone@digipres.club

              I know programmers who use fat binaries and they're all cowards

              mxk@hachyderm.ioM This user is from outside of this forum
              mxk@hachyderm.ioM This user is from outside of this forum
              mxk@hachyderm.io
              wrote sidst redigeret af
              #33

              @foone my favorite type of fat binaries probably are cosmopolitan libc/ape binaries.
              I find it fascinating and entertaining but note that I don't think it's an actual good idea.
              https://justine.lol/cosmopolitan/index.html

              1 Reply Last reply
              0
              • foone@digipres.clubF foone@digipres.club

                https://mastodon.social/@dosnostalgic/116195465538703931

                jernej__s@infosec.exchangeJ This user is from outside of this forum
                jernej__s@infosec.exchangeJ This user is from outside of this forum
                jernej__s@infosec.exchange
                wrote sidst redigeret af
                #34

                @foone I remember some utilities from back in the day that did this; I even wrote one (QB 4.5 for DOS .exe, VB 5.0 for Win32; IIRC, I had to run the VB linker manually, which let me specify the .exe to use as DOS stub).

                1 Reply Last reply
                0
                • foone@digipres.clubF foone@digipres.club

                  @Kathee_HDS ROUGE.EXE!

                  kathee_hds@tech.lgbtK This user is from outside of this forum
                  kathee_hds@tech.lgbtK This user is from outside of this forum
                  kathee_hds@tech.lgbt
                  wrote sidst redigeret af
                  #35

                  @foone ah damn missed the opportunity to say "with bits to match", post cancelled, hit the showers everyone we did good but we're not at our best yet the fans expect better of us pushes a lever and falls into the river

                  1 Reply Last reply
                  0
                  • max@peering.socialM max@peering.social

                    RE: https://digipres.club/@foone/116195447625031209

                    @foone Does ARM somehow also fit in?

                    jernej__s@infosec.exchangeJ This user is from outside of this forum
                    jernej__s@infosec.exchangeJ This user is from outside of this forum
                    jernej__s@infosec.exchange
                    wrote sidst redigeret af
                    #36

                    @max @foone DOS stub is still present in Windows ARM binaries (32 and 64-bit).

                    1 Reply Last reply
                    0
                    • foone@digipres.clubF foone@digipres.club

                      so you could fat-binary a program to run on DOS/win32/win64 this way, by making it a 32bit program which win64 can run though backwards compatibility.

                      I'm not sure if you can include win16 though: it won't run the DOS stub, and it'll not be able to run the win32 version.

                      Unless you can set up win32s on win16 in such a way that it works in both 16bit windowses (through win32s) and 32bit-native windowses

                      jernej__s@infosec.exchangeJ This user is from outside of this forum
                      jernej__s@infosec.exchangeJ This user is from outside of this forum
                      jernej__s@infosec.exchange
                      wrote sidst redigeret af
                      #37

                      @foone Win16 programs are NE, but I have no idea if you can combine NE and PE in the same file (would have to look at what each of them needs in the stub .exe header).

                      1 Reply Last reply
                      0
                      • max@peering.socialM max@peering.social

                        RE: https://digipres.club/@foone/116195447625031209

                        @foone Does ARM somehow also fit in?

                        snowfox@tech.lgbtS This user is from outside of this forum
                        snowfox@tech.lgbtS This user is from outside of this forum
                        snowfox@tech.lgbt
                        wrote sidst redigeret af
                        #38

                        @max @foone After skimming https://learn.microsoft.com/en-us/windows/arm/arm64x-build again, I'm ... not sure?

                        There's "Arm64EC" which is a modified Arm64 ABI to play nicer with emulated x86 code (e.g. half the registers are unusable so there's a 1:1 correspondence with amd64?), and Arm64X which is Arm64 and Arm64EC(?) "fat" binaries. Not sure if it supports Arm64+amd64 "fat" binaries, or even all three.

                        I'd assume that they include the same DOS stub out of habit, but who knows?

                        1 Reply Last reply
                        0
                        • jwcph@helvede.netJ jwcph@helvede.net shared this topic
                        Svar
                        • Svar som emne
                        Login for at svare
                        • Ældste til nyeste
                        • Nyeste til ældste
                        • Most Votes


                        • Log ind

                        • Har du ikke en konto? Tilmeld

                        • Login or register to search.
                        Powered by NodeBB Contributors
                        Graciously hosted by data.coop
                        • First post
                          Last post
                        0
                        • Hjem
                        • Seneste
                        • Etiketter
                        • Populære
                        • Verden
                        • Bruger
                        • Grupper