StreakPeaked· Practice

ExamsGATETechnical

Which ONE of the following techniques used in compiler code optimization uses live variable analysis?

  1. Run-time function call management
  2. Register assignment to variables
  3. Strength reduction
  4. Constant folding

Correct answer: Register assignment to variables

Solution

Register assignment to variables relies on live variable analysis to determine which variables are actively needed at a given point in the program, allowing the compiler to allocate registers more efficiently and minimize unnecessary memory access.

Related GATE Technical questions

⚔️ Practice GATE Technical free + battle 1v1 →