04 / compiler / c / state / 110 of 110 tests
ccompiler
a c compiler written in c11 that emits llvm ir
define i32 @factorial(i32 %n)
- tokenizer, recursive descent parser, semantic analysis, ir codegen
- 56 programs checked against clang
- built and tested under asan and ubsan
source private for now

fig. 01 examples/factorial.c next to the ir the compiler produces for it 
fig. 02 the pipeline: tokenizer, recursive descent parser, semantic analysis and llvm ir codegen, then clang links a native executable 
fig. 03 the n-queens showcase compiled with ccompiler: the first 6x6 solution and the counts for boards up to 10x10 
fig. 04 make check: 110 tests, 0 failures, under addresssanitizer and ubsan. errors are reported as file:line:col diagnostics