Later testing showed some overfitting to the test harness: it can compile Linux, but not hello world!
https://github.com/anthropics/claudes-c-compiler/issues/1Wilfred Hughes
Benchmarking showed that CCC has much worse performance in terms of both compile time and runtime.
Since it was designed to match gcc flags, it supports both -O0 and -O2, but the output is identical. It produces working code, but it doesn't optimise.
https://harshanu.space/en/tech/ccc-vs-gcc/Wilfred Hughes
Others observed that diagnostics aren't great. It has off-by-one in line numbers and invalid C programs are accepted.
Verifying input correctness was out-of-scope for CCC, so I think this is reasonable. I know mrustc is also doesn't check validity.
https://voxelmanip.se/2026/02/06/trying-out-claudes-c-compiler/Wilfred Hughes
Chris Lattner (the creator of LLVM) reviewed the code, and noted how similar the structure is to clang/LLVM and GCC.
Even though other C compilers are not written in Rust, Claude seems to show knowledge transfer from its knowledge of existing compilers.
https://www.modular.com/blog/the-claude-c-compiler-what-it-reveals-about-the-future-of-softwareWilfred Hughes
John Regehr (a compiler verification expert) looked at CCC and discussed how production compilers differ.
He also fuzzed the compiler, found bugs, and managed to fix them by just prompting! John has years of experience with UB validity though.
https://john.regehr.org/writing/claude_c_compiler.htmlWilfred Hughes
Later testing showed some overfitting to the test harness: it can compile Linux, but not hello world!
https://github.com/anthropics/claudes-c-compiler/issues/1Wilfred Hughes
Benchmarking showed that CCC has much worse performance in terms of both compile time and runtime.
Since it was designed to match gcc flags, it supports both -O0 and -O2, but the output is identical. It produces working code, but it doesn't optimise.
https://harshanu.space/en/tech/ccc-vs-gcc/Wilfred Hughes
Others observed that diagnostics aren't great. It has off-by-one in line numbers and invalid C programs are accepted.
Verifying input correctness was out-of-scope for CCC, so I think this is reasonable. I know mrustc is also doesn't check validity.
https://voxelmanip.se/2026/02/06/trying-out-claudes-c-compiler/Wilfred Hughes
Chris Lattner (the creator of LLVM) reviewed the code, and noted how similar the structure is to clang/LLVM and GCC.
Even though other C compilers are not written in Rust, Claude seems to show knowledge transfer from its knowledge of existing compilers.
https://www.modular.com/blog/the-claude-c-compiler-what-it-reveals-about-the-future-of-softwareWilfred Hughes
John Regehr (a compiler verification expert) looked at CCC and discussed how production compilers differ.
He also fuzzed the compiler, found bugs, and managed to fix them by just prompting! John has years of experience with UB validity though.
https://john.regehr.org/writing/claude_c_compiler.htmlWilfred Hughes
@wilfredh The "can't compile hello world" bug report had nothing to do with the source code -- the compiler expected include files in the particular location of the systems it was built on, and couldn't find them when built on a system that located them differently. (Read the bug report and you'll see perfectly intelligible messages saying "stddef.h not found", etc. It did compile postgres to binaries that passed the test suite, and PG does require this header. A lot.)
Robert Thau@rst@mastodon.social
@wilfredh A compiler without optimizations? So basically a macro assembler? Something that's really only different from a college student's homework assignment insofar as it has to has to support a bunch of historical quirks in the language's syntax?
Daniel McLaury@danielmclaury@mathstodon.xyz