compilation_model
Introduction
This page introduces the compilation model of our language. You are REQUIRED to follow this model in your own compiler implementation.
Compilation Process
- Concatenate user-provided source code with contributed functions (
contrib.java
) - Syntactic analysis
- Halt and exit 1 (
System.exit(1)
) if any error detected - Build an AST if parsed successfully
- Semantic analysis
- Halt and exit 1 (
System.exit(1)
) if any error detected- You are suggested (but not required) to print detailed error messages
- Build global environment information if analyzed successfully
- Translation (IR generation)
- Code generation (MIPS)
- Link (concatenate) with your
runtime.s
compilation_model.txt · Last modified: 2012/03/27 14:27 by xjia