ARM PIC/PID code generation

Oren Sokoler orenskl@lipman.co.il
Tue May 18 14:35:00 GMT 2004


I have noticed that the ARM code generation uses the
a single PIC register for referencing both constant 
data (in .rodata) and non-constant data (.data and .bss).

Does anybody know of a way to use the PC register for
referencing constant data (assuming the .rodata section
is adjacent to the .text section). This is most useful
in embedded systems were constant data can be located 
in ROM together with the .text section to preserve RAM
space.


Thanks 

Oren



More information about the Gcc mailing list