This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Differing pointer sizes (e.g near/far)


Hi,

I've been doing some preliminary reading while considering
doing a port of GCC to the M16C processor -- a 16-bit CISC
processor from Renesas (nee Mitsubishi).

To be most useful, a compiler for M16C would need to support
two different pointers sizes (24-bits for pointers to functions
and 16-bits for pointers to data).

It appears that GCC requires all pointers to be the same size.
Is that correct?  

There's no way to have pointers to text be a different size
than pointers to stack/bss/data?

-- 
Grant Edwards
grante@visi.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]