This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [4.5 patches] Named address space support
- From: DJ Delorie <dj at redhat dot com>
- To: Michael Meissner <meissner at linux dot vnet dot ibm dot com>
- Cc: meissner at linux dot vnet dot ibm dot com, gcc-patches at gcc dot gnu dot org
- Date: Mon, 17 Nov 2008 18:06:03 -0500
- Subject: Re: [4.5 patches] Named address space support
- References: <20081117223440.GA30463@hungry-tiger.westford.ibm.com>
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.