Slimcc: C23 compiler with C2y/GNU extensions for x86-64 Linux/BSD, written in C9
Slimcc is a new C compiler that has evolved significantly from its predecessor, chibicc. It supports a wide range of C standards and GNU extensions, making it suitable for various projects. The compiler is designed to be portable and efficient, with a focus on compatibility with existing build systems.
- ▪Slimcc started as a fork of Rui Ueyama's chibicc and has undergone extensive code rewriting.
- ▪It includes optimizations, reduced RAM usage, and support for both older and newer C standards.
- ▪The compiler is capable of bootstrapping a chroot environment with musl and userland compiled by itself.
Opening excerpt (first ~120 words) tap to expand
slimcc started as fork of Rui Ueyama's chibicc, after three years about 85% of the code is new. It fixed issues compiling real projects, added basic codegen optimizations, reduced RAM footprint, mostly-completed support for older (C89) to newer (C23) standards, and implemented commonly used GNU extensions. It is mature enough to serve as a drop-in C compiler for most portably-written programs in glibc environment, and able to bootstrap a chroot with musl/binutils/userland all compiled by itself.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at GitHub.