This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Different sized data and code pointers
- From: "E. Weddington" <ericw at evcohs dot com>
- To: Thomas Gill <thomas dot gill at csr dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 01 Mar 2005 07:25:09 -0700
- Subject: Re: Different sized data and code pointers
- References: <42245115.2020908@csr.com>
Thomas Gill wrote:
Hi all.
I'm working on a GCC backend for a small embedded processor. We've got a
Harvard architecture with 16 bit data addresses and 24 bit code
addresses. How well does GCC support having different sized pointers for
this sort of thing? The macros POINTER_SIZE and Pmode seem to suggest
that there's one pointer size for everything.
The backend that I've inherited gets most of the way with some really
horrible hacks, but it would be nice if those hacks weren't necessary.
In any case, the hacks don't cope with casting function pointers to
integers.
I too would be interested in different size pointer support as this may
be needed to further improve the AVR port (add new bigger devices).
Eric