1. Lexical analysis: In this process compiler recognize basic elements of program and create a uniform symbol rate.
2. Syntax analysis: In this process basic syntactic constructs are recognized by compiler and their validity is checked.
3. Interpretation: In this phase, exact meanings of syntactic units are determined and compiler creates certain data bases required for translation. It includes creation of tables.
4. Machine independent optimization: In this phase optimization of data bases is performed. This result in removing all redundancies during the code generation step.
5. Storage assignment: In this phase storage space is assigned for code, data etc.
6. Assembly and output: In this phase based, on data bases it created earlier, compiler generate machine code and resolve all symbolic addresses.
0 Comments