GATE CS 2014, set 3 · Question 27 · Compiler Design · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer

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

  1. (A) make parsing and semantic analysis simpler.
  2. (B) improve error recovery and error reporting.
  3. (C) increase the chances of reusing the machine-independent code optimizer in other compilers.
  4. (D) improve the register allocation.
Answer

Answer (C)

Answer from the official GATE CS 2014 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes