3.2.4
版本发布时间: 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.
- b580080af tool/cosmocc: Allow exceptions and rtti (#1074)
- b0566348b third_party/libcxxabi: Add test suite (#1076)
- b09096691 third_party: Add libunwind (#1053)
- 81ce2e4cb Call thread finalizers on exit()
- 94bab1618 Add fixes to libunwind (#1069)
- 8b33204f3 Add LLVM libcxxabi (#1063)
- 6ab01716c Fix aarch64 setjmp abi
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.
- a4b455185 Bring back
gc()
function
Here's some additional developments since the last release:
- df648fb17 Revert apeinstall.sh binfmt flags (#1072)
- cafea9a0a Flesh out tool/zsh/mkofs
- 6cb0354e1 mkofs improvements
- 16099801c zsh mkofs tool
Known Issues
- Compiling the mono repo on Windows is currently broken due to #1010. In the meantime, use cosmopolitan-3.2.tar.gz
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