News for hackers. Stuff that matters.
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.

Re:Cosmopolitan Libc v2.0 by jart on Saturday August 20, 2022 @10:56AM (#32532471)
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)