C Compiler

C to MIPS Compiler in C++

The goal of this project was to develop a C to MIPS Compiler in C++, in a pair. Our compiler is able to handle a variety of complicated C statements:

  • Arrays
  • Pointers
  • Loops
  • Case/Switch/Break
  • Advanced function calls

Some of these classes and methods are highlighted in the images below.

Left: C Statements. Middle: C Unary Operators. Right: C Declerators.