Help wanted on PA, sparcv9! Use STACK_POINTER_OFFSET when aligning parameters

David S. Miller davem@redhat.com
Thu Sep 25 11:05:00 GMT 2003


On Wed, 24 Sep 2003 20:14:41 -0700
Geoffrey Keating <geoffk@apple.com> wrote:

> Maybe a sparc maintainer could explain

The stack pointer stored in the %sp register on Sparc in 64-bit mode
is offset or "biased" by 2047 bytes.  The reason this is done is that
it allows the "reg + immediate" address format to access more of the
relavant frame.

So if you want to access "16 bytes above the stack pointer" the
address used to do that really is "%sp + 2047 + 16" instead of
"%sp + 16".



More information about the Gcc-patches mailing list