ltorg question

Michael K. Elwood mkelwood@qsicorp.com
Tue Nov 4 23:25:00 GMT 2003


At 03:44 PM 11/4/2003 -0500, vishu27@cox.net wrote:
>Hi,
>    Sorry if this is not the forum to ask about this questions. But can 
> any one explain to me what the .ltorg directive is in "as". and what is a 
> literal pool. When would one use the .ltorg Pseduo op.
>
>I would really appreciate your answers.

On the ARM architecture, the literal pool holds constants for PC-relative 
register loads when the immediate value doesn't fit in the #<immed_r8> 
format (see the ARM architecture reference manual). The .ltorg directive 
tells the assembler where to put the local pool. The compiler typically 
puts this at the end of each compiled function. The directive is mainly 
useful when you are writing pure assembly functions.

Hope this helps.

MKE


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list