Created For - School
Created - May 9, 2015, 8:36 a.m.
Binary available - Link
Language Used - C
This was a semester long project my last semester. We completed the project in 4 phases: scanner, parser, semantic analyse and codegen. The compiler is written in C, and compiles a minimal subset of C called minC. The main features of minC include "while" as the loop construct, if/else/ifelse as conditional construct, single parameter functions and only integer data types. Arrays are not supported at this time. The assembly file produced will run on the Mars simulator. Future plans include adding array support, arbitrary parameter support, a more sane register allocator, and a port to ARM assembly. Source code is available here.