Register Spilling
Ian Lance Taylor
ian@wasabisystems.com
Wed Dec 10 14:58:00 GMT 2003
Umar Janjua <Umar.Janjua@cl.cam.ac.uk> writes:
> During register allocation , when certain virtual registers are decided to be
> spilled to memory, is there a specific scheme/strategy on the basis of which
> the spilled values are laid out on memory.
Well, yes and no. The spilled values are put into the stack frame.
The space is allocated by calls to assign_stack_local(). But there is
no predictable ordering of the spilled pseudo-registers, if that is
what you mean. The registers are spilled as needed as the compiler
works through the instructions.
Ian
More information about the Gcc-help
mailing list