Re: How to generate a PC- relative load instruction.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



sumanth <sumanth.gundapneni@xxxxxxxxxxxxxxxxxx> writes:

> Ian Lance Taylor wrote:
>>
>> This sort of thing is often done in the LEGITIMIZE_ADDRESS macro.  Your
>> case looks a bit complicated and probably requires an UNSPEC.  You will
>> also want to consider a constant pool.  I think the SH has some cases
>> like yours, but I'm not sure.
>>
>> Ian
>
>     does this one(idea) related to program independent code (pic).  

PIC is often implemented by creating an UNSPEC in LEGITIMIZE_ADDRESS or
in LEGITIMIZE_PIC_ADDRESS.  See many existing examples.

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux