compilation_model
This is an old revision of the document!
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.1331624443.txt.gz · Last modified: 2012/03/13 07:40 by xjia