GitHub - jart/cosmopolitan: build-once run-anywhere c library

Cosmopolitan Libc makes C a build-once run-anywhere language, like Java, except it doesn’t need an interpreter or virtual machine. Instead, it reconfigures stock GCC and Clang to output a POSIX-approved polyglot format that runs natively on Linux + Mac + Windows + FreeBSD + OpenBSD + NetBSD + BIOS with the best possible performance and the tiniest footprint imaginable.

That’s impossible. Even if such a format would exist it can’t have best performance and even less tiniest footprint.

Greetings
Peter

The format does exist, it uses severall hacks… and then functions as a mostly fat binary afail.

Not sure where the claim of best performance or ti iest footprint come from…

It’s not impossible it’s just seldom practical. It just requires a linker library to a generalized runtime for text-only apps. Going any deeper than that requires a bigger runtime library.

1 Like

Ok, I looked at the webpage describing APE , and it seems that such a format exists. That’s quite strange!

Greetings
Peter

That APE crap again? :roll_eyes: … Some stuff never dies…

2 Likes