Complete the sentence to define register allocation.
Register allocation is the process of assigning [1] to program variables during compilation.Register allocation assigns registers to variables to speed up program execution.
Complete the sentence to explain the goal of register assignment.
The goal of register assignment is to map variables to [1] efficiently to minimize slow memory access.Register assignment maps variables to registers to reduce slow memory access.
Fix the error in the statement about register allocation.
Register allocation assigns [1] to variables to optimize CPU usage.The correct term is registers, not memory addresses or disk space.
Fill both blanks to complete the description of register allocation techniques.
One common technique is [1], which assigns registers based on variable [2] during program execution.
Graph coloring is a technique that assigns registers based on variable lifetime to avoid conflicts.
Fill all three blanks to complete the explanation of register spilling.
When there are not enough [1], some variables are moved to [2] in a process called [3].
Registers are limited, so variables may be stored in memory instead, called register spilling.
