Home » Compiler Design » Compiler design miscellaneous » Question

Compiler design miscellaneous

  1. One of the purposes of using intermediate code in compilers is to
    1. make parsing and semantic analysis simpler.
    2. improve error recovery and error reporting.
    3. increase the chances of reusing the machine independent code optimizer in other compilers.
    4. improve the register allocation.
Correct Option: C

Intermediate code makes it easy to retarget the compiler to generate code for newer and different processors.



Your comments will be displayed only after manual approval.