[LLVMdev] LLVM on 64-bit PowerPC Linux

Dale Johannesen dalej at apple.com
Mon Jul 6 10:25:05 PDT 2009


btw, this PPC convention is not unique to 64-bit Linux; it is used on  
AIX 32-bit and I believe it was used on earlier versions of MacOSX  
(but is no longer).  Neither of those is an immediate target but you  
might want to keep it in mind when deciding where to put the new code  
you're adding.

On Jul 3, 2009, at 7:29 AMPDT, Gary Benson wrote:

> Simple.  On 64-bit Linux PowerPC, however, a function pointer in C
> is the address of a function descriptor, a structure containing three
> pointers:
>
> - The first pointer contains the address of the entry point of
>   the function.
> - The second pointer contains the TOC base address for the function.
> - The third pointer contains the environment pointer (for languages
>   that need one).




More information about the llvm-dev mailing list