A toy Compiler supports compiling single file code in the simple programing language Mx* into RISC32I assembly. CS2966 Course Project.
- Use ANTLR to analyse source code
- Construct AST from CST to do Semantic Check
- Implement IR confirming to LLVM form(executable by clang)
- Adopt Memory2Reg, a small optimization
- GraphColoring register allocation
- More advanced Instruction selector
- More complex Optimization, like SCCP ADCB and so on