Register spilling
From Wikipedia, the free encyclopedia
Register spilling occurs where there are more live variables than the machine has registers.
[edit] Description
When a compiler is generating machine code and there are more live variables than the machine has registers, it has to transfer or "spill" some variables from registers to memory. This incurrs a certain cost, as access from memory is typically slower than access from a register.