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]

Re: Differing pointer sizes (e.g near/far)


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



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