Artificial-Intelligence
February 4, 2024
Computer-Organization
February 4, 2024
Artificial-Intelligence
February 4, 2024
Computer-Organization
February 4, 2024

Question 8698 – Compiler-Design

One of the purposes of using intermediate code in compilers is to

Correct Answer: C

Question 36 Explanation: 
Intermediate code is generated after semantic analysis. The intermediate code is independent of machine. By converting source code to intermediate code a machine independent code optimizer may be written. Thus increase the chances of reusing the machine-independent code optimizer in other compilers.
A
make parsing and semantic analysis simpler.
B
improve error recovery and error reporting.
C
increase the chances of reusing the machine-independent code optimizer in other compilers.
D
improve the register allocation.

Leave a Reply

Your email address will not be published. Required fields are marked *