This is the project of CS323 compiler. There are four project totally:
- Lexical Analysis && Syntax Analysis
- Semantic Analysis
- Intermediate Code Generation (TAC)
- Target Code Generation (MIPS)
SPL is a simple language similar to C without malloc, pointer.
using make file to do simple test.
make splc
: compile the source code of spl compilermake test
: generate mips code of spl file in the fold of testmake ir
: using irsim run ir testmake asm
: using spim run mips test
- Could add string constants in the front end part.
- In the intermediate code generation part, it doesn't implements scope variables. The float and char support is not enought, so string not supported.
- In the target code generation part, it doesn't implement struct and array.