Discussion
One of the purposes of using intermediate code in compilers is to
Answer: C
One purpose is to increase the chances of reusing the machine-independent code optimizer in other compilers.
An intermediate representation separates the front end (source language) from the back end (target machine). Optimizations written on the intermediate code do not depend on either, so the same optimizer can be reused across compilers for different languages and machines.
Parsing and semantic analysis happen before intermediate code is produced, error reporting belongs to the front end, and register allocation is done for a specific machine in the back end, so the other options do not describe its purpose.
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