MyGit

3.2.4

jart/cosmopolitan

版本发布时间: 2024-01-09 12:27:02

jart/cosmopolitan最新发布版本:3.3.6(2024-05-08 19:24:03)

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

相关地址:原始地址 下载(tar) 下载(zip)

1、 cosmocc-3.2.4.zip 168.89MB

2、 cosmopolitan-3.2.4.tar.gz 42.43MB

3、 cosmopolitan-amalgamation-3.2.4.zip 8.43MB

4、 cosmopolitan-amalgamation-rel-3.2.4.zip 2.18MB

5、 cosmopolitan-amalgamation-tiny-3.2.4.zip 2.06MB

6、 cosmopolitan-amalgamation-tinylinux-3.2.4.zip 1.91MB

7、 cosmos-3.2.4.zip 245.09MB

查看:2024-01-09发行的版本