This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Differing pointer sizes (e.g near/far)
- From: Grant Edwards <grante at visi dot com>
- To: gcc at gcc dot gnu dot org
- Date: Sun, 19 Oct 2003 21:43:00 -0500
- Subject: 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