Different sized data and code pointers

Thomas Gill thomas.gill@csr.com
Tue Mar 1 11:26:00 GMT 2005


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.

**********************************************************************



More information about the Gcc mailing list