This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
ARM PIC/PID code generation
- From: Oren Sokoler <orenskl at lipman dot co dot il>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 18 May 2004 17:35:54 +0200
- Subject: ARM PIC/PID code generation
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