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]

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


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