GATE 2014 CS (CS3) – Question 27
One purpose of intermediate code in compilers is to ______.
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (C) increase opportunities to reuse the machine-independent code optimizer in other compilers
Explanation
A machine-independent intermediate representation separates source-language translation from target-specific code generation. Optimisations on that representation can be reused across compilers. Thus **C**. It does not inherently simplify the source grammar or guarantee better register allocation.