cur_cpu_spec is a pointer

David Edelsohn dje at watson.ibm.com
Tue Apr 13 00:41:46 EST 2004


>>>>> Anton Blanchard writes:

Anton> A question for Alan, why cant we put variables directly in the TOC? I
Anton> admit it will become a right pain once you get multiple TOCs.

	One definitely can store data directly in the TOC.  GCC does this
for floating-point constants, but does not know how to do this for normal
variables nor on a variable-by-variable basis.  If one always accesses the
data through assembly language, this will not be a problem.  The PPC64 ABI
specifically provides examples of accessing data directly stored in the
TOC.

David


** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc64-dev mailing list