GATE 2025 CS (CS1) – Question 13
Which ONE of the following techniques used in compiler code optimization uses live variable analysis?
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (B) Register assignment to variables
Explanation
Live variable analysis tells which variables hold values still needed. This drives register allocation, since variables that are not simultaneously live can share a register.