Header Image

Compiler

  In my class, CS 250 (Computer Architecture), we were assigned a project to build a compiler for simplified C. We had learned how to write programs in ASM x86, anything we would write in C. The final project was to create a compiler that would make the first step turning code into machine instructions.

  Beyond the simpler parts, I added some extra credit features to use ternary operators, short circuiting, and unrolling constant loops.

← Back to Projects