Practice - Register Allocation: Managing the CPU's Elite Storage
Interactive Quizzes
Quick quizzes to reinforce your learning
What kind of variables are often assigned to registers "on first use" in a simple register allocation strategy?
* **Type**: mcq
* **Options**: Global constants only, Unused variables, Temporary variables and source variables, Function return values only
* **Correct Answer**: Temporary variables and source variables
* **Explanation**: "When a temporary variable (t1, t2) or a source variable (a, b) is first used as an operand in a TAC instruction, the code generator tries to assign it to an available register."
* **Hint**: These are the active pieces of data in a computation.
💡 Hint: These are the active pieces of data in a computation. -----
Get performance evaluation