8cc: A Small C11 Compiler

The 8cc project is a compiler aimed at keeping its code as small and simple as possible while supporting all C11 language features. The 8cc compiler is in a state that it can self-host, but it's not an optimizing compiler and the lead developer admits that the generated code out of 8cc is "usually 2x or more slower than GCC."
The 8cc project isn't based on LLVM or any other compiler infrastructure. At the moment this small C11 compiler only supports x86_64 Linux and portability isn't a concern for now. This is just a small project but is interesting for its clean code if you're wanting to learn more how a C compiler functions. To checkout this MIT-licensed C11 compiler, see the GitHub project page.
16 Comments