Different sized data and code pointers

E. Weddington ericw@evcohs.com
Tue Mar 1 14:27:00 GMT 2005


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



More information about the Gcc mailing list