This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

When is RBX used for base pointer?


Hi,

We need a callee-saved register for stack alignment. In 64bit, our
choices are rbx, and
r12-r15. r12-r15 need the REX byte and r12 also needs the SIB byte. So
I'd like to use rbx.
x86-64 psABI says rbx is callee-saved and optionally used as base
pointer. However,
I couldn't find an example where rbx is used as base pointer. Is this
a carryover from
i386 psABI where ebx is used to hold GOT?

Thanks.

H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]