Discussion
The number of phases in the classical model of a compiler is usually given as
Answer: D
Correct answer: six, spanning lexical analysis through to code generation
The classical model has lexical analysis, syntax analysis, semantic analysis, intermediate code generation, code optimisation and code generation.
The first three are the analysis phase or front end and the last three the synthesis phase or back end, which is the two-part division the third option describes at a coarser grain. Alongside them run the symbol table manager and the error handler, which interact with every phase rather than occupying a position in the sequence.
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development