This is a project for course 'Compiler' 2022 BUAA.
I developed a MIPS compiler using C++ to translate simple C code into MIPS assembly language.
The compiler included lexical analysis, parsing, error detection, intermediate code generation and code optimization.
中文版:
2020编译课设,课下课上测试中没有bug,优化极少仅供参考