C to MIPS Compiler

Mentor: Dr. Amey Karkare, IITK

Stretch: Jan’17 - Apr’17

Complete Project: C to MIPS Compiler

Developed a C compiler that compiles to MIPS, implemented using Python. Implemented all stages of compiler design - lexer, parser, intermediate code generator and code generator. Handled a variety of semantic and syntactic errors using translation schemes. Built support for recursion, struct as parameter and return value, short circuit evaluation and other optimizations.