This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Different sized data and code pointers
- From: Thomas Gill <thomas dot gill at csr dot com>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 01 Mar 2005 11:25:09 +0000
- Subject: Different sized data and code pointers
- Organization: Cambridge Silicon Radio
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.
Thanks,
Ned.
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************