github jart/cosmopolitan 3.2.4
Cosmopolitan v3.2.4

latest releases: 3.9.4, 3.9.3, 3.9.2...
10 months ago

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. For further details, read Cosmopolitan Third Edition, the Cosmo README, and the Cosmopolitan Toolchain README.

This v3.2.4 release of Cosmopolitan introduces C++ exceptions and RTTI,
which can be enabled by passing the -fexceptions and/or -rtti flags
to your cosmocc compiler.

If C is your preferred language, then you can use Cosmopolitan garbage
collection via our new gc() macro. To enable this feature, you need to
pass the -mcosmo flag to cosmocc. For example, to say gc(malloc(32))
means that memory will be reclaimed when your function returns, and it
will be reclaimed by pthread_exit() too. There's also defer() which is
generalized and allows any callback. Pointers exist on a shadow stack.

Here's some additional developments since the last release:

Known Issues

Don't miss a new cosmopolitan release

NewReleases is sending notifications on new releases.