This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
register variables: list?
- From: skaller <skaller at users dot sourceforge dot net>
- To: GCC <gcc at gcc dot gnu dot org>
- Date: Wed, 24 Oct 2007 03:25:29 +1000
- Subject: 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