8cc: A Small C11 Compiler
Written by Michael Larabel in Programming on 1 March 2015 at 09:01 AM EST. 16 Comments
There is yet another small hobbyist, open-source code compiler to talk about this weekend. Hello 8cc.

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.
Related News
About The Author
Author picture

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter or contacted via MichaelLarabel.com.

Popular News This Week