Re:Cosmopolitan Libc v2.0
by stephc_int13 on Saturday August 20, 2022 @10:52AM
(#32532456)
Are you sure that a .com executable can be renamed as .exe and still work on Windows?
Unfortunately Windows might not be that smart.
I really like the tiny ELF executable running on any unix, very neat and not scary.
Having the same style of release for macOS and Win32 would be perfect.
Yes I'm sure. On Windows .com and .exe are the same thing. If you want just a Windows binary without any APE, you can use -DSUPPORT_VECTOR=4 and just change the .com extension to .exe. If you want just a MacOS binary, then use -DSUPPORT_VECTOR=8 and then run the assimilate.com program with the -m flag to convert it to Mach-O.
Re:Cosmopolitan Libc v2.0
by FragenAntworten on Saturday August 20, 2022 @11:01AM
(#32532511)
It seems that it should work: https://web.archive.org/web/20180223071736/https://blogs.msd...
Lastly, you can always change the .com extension to .exe. I would have chosen the latter, but I think UNIX has more in common with DOS than it does with Windows. I know people in the Microsoft camp hold negative associations with .com. But I didn't want people in other camps to think APE is just a Windows program.