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]

Re: The address of a symbol_ref


On Mon, 15 Sep 2003, Anders Ådland wrote:

> The length attribute is used to select the correct type of branch 
> instructions. This is done by comparing the label_ref to jump to with (pc).
> 
> On my architecture I have an instruction for loading from a symbol_ref,
>    load   r0, LLC0,
> but it can only be used if it's not too far from the program counter. Is 
> it possible to get the address where the symbol_ref is going to be 
> located? I need to compare it with (pc).
> 
> Anders Ådland

Try grepping for "literal pool" in the GCC sources.

Toshi



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