Embed Notice
HTML Code
Corresponding Notice
- Embed this notice
moesha (moesha@yuga.surf)'s status on Sunday, 01-Oct-2023 08:28:18 JSTmoesha @p @animeirl @nishi
Cproc is a "modern" small C compiler. It's based on https://c9x.me/compile/, which aims to have "70% of the performance of industrial optimizing compilers in 10% of the code." Cproc performs basic optimizations via QBE, while maintaining relatively quick compile times. But it is not as feature complete as LCC and Chibcc, notably the preprocessor doesn't seem to be complete yet.
LCC was the basis of a book about compilers, it's more for learning purposes but it still serves as a nice compiler. Someone created a compiler, pelles C, that is based on LCC and works on Windows.
Chibcc is similar to TCC: its a non optimizing compiler, but its more modern and the code is easier to understand. Justine Tunney switched from using tinycc to chibcc in the Cosmopolitan libc project.