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]

register variables: list?


In

http://gcc.gnu.org/onlinedocs/gcc-4.2.2/gcc/Explicit-Reg-Vars.html#Explicit-Reg-Vars

it explains how to use register variables .. but doesn't list them.

Is there a document somewhere which lists

a) each CPU macro name
b) all the registers supported

?

I need to get the stack pointer when __builtin_frame_address(0) isn't
working .. on amd64 this:


register void *stack asm ("%rsp");

appears to work. Also this is the current stack pointer .. not
the frame pointer, which could be different.

-- 
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net


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