Computer Science EngineeringHard

In graph-colouring register allocation, the nodes of the interference graph represent

  1. A. instructions
  2. B. live ranges (variables)
  3. C. basic blocks
  4. D. labels

Correct answer: B. live ranges (variables)

An edge joins two live ranges that are live simultaneously, so they cannot share a register.

More Theory of Computation, Compilers & Digital Logic (ISRO CS) questions

Exams that ask this topic