About Projects Blog Resume

C0 Compiler

I implemented a compiler for C0 (a memory-safe subset of C) in OCaml, targeting x86-64 assembly for CMU's compiler course. The compiler supports all C0 language features, including: The compiler also implements a level of optimizations, which enables the following: