Differing pointer sizes (e.g near/far)

Jim Wilson wilson@specifixinc.com
Mon Oct 27 11:51:00 GMT 2003


Grant Edwards wrote:
> It appears that GCC requires all pointers to be the same size.
> Is that correct?

Yes.

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

Not easily, but pointers to text are rare.  The only way to get a 
pointer to text is from taking the address of a function or a label, and 
you may be able to give these cases special treatment.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



More information about the Gcc mailing list