This is the mail archive of the gcc-patches@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: [4.5 patches] Named address space support


Would this patch set allow for address spaces with different sized
pointers?

Specifically, the r8c has 16 bit pointers, but a 20 bit address space.
RAM is all in the 16 bit space, but .rodata could be put in flash, if
only gcc could address it.  GCC seems intent on copying addresses to
registers and letting the optimizers put them back, which doesn't
always do the right thing.

It would be nice if we could internally tag .rodata and have gcc emit
the right kinds of addressing modes for it.


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