Home |
Menu
Compiler Design and Deveopment for the language C--
Click here for sample results
Click here for the source code
Click here for C-- language specifications
Click here for Intermediate Code language specifications
This is a project on compiler design and implementation. Implementation includes all phases of a typical compiler:
- Scanning
- Parsing
- Semantic analysis
- Intermediate code generation
- Code optimization
- Code generation
The project used tools Flex and Bison for Scanning and Parsing respectively.
All other functionalities are implemented using C.
Code Optimizations inlcude:
- Dead Code Elimination
- Jump Chaining
- Procedure call Optimization
- Constant Folding
This project takes a C-- program as input and generates assembly code. The generated code is tested using the MIPS simulator SPIM.