How is it possible to build once and run on both Windows and Linux if Windows uses the PE executable format and Linux uses ELF?
Is there some kind of trickery to make a file both PE and ELF valid? Doesn't magic numbers conflict?
Is there some kind of trickery to make a file both PE and ELF valid? Doesn't magic numbers conflict?
Can I use it to make a Rust executable? Maybe it can post-process the executable built by Rust somehow? (I guess Rust needs to link against the cosmopolitan libc and otherwise not make any syscalls)
Maybe it's possible to make a cosmopolitan Rust target, like, x86-unknown-cosmopolitan?
Also, does it support x86_64? (and maybe a fat x86/x86_64 binary as well?)
https://en.wikipedia.org/wiki/Common_Intermediate_Language
https://www.i-programmer.info/programming/other-languages/93...