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:
  1. Scanning
  2. Parsing
  3. Semantic analysis
  4. Intermediate code generation
  5. Code optimization
  6. Code generation
The project used tools Flex and Bison for Scanning and Parsing respectively.
All other functionalities are implemented using C.

Code Optimizations inlcude:
  1. Dead Code Elimination
  2. Jump Chaining
  3. Procedure call Optimization
  4. Constant Folding
This project takes a C-- program as input and generates assembly code. The generated code is tested using the MIPS simulator SPIM.



Home

Research

Resume

Projects

Links