This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: does gcc support multiple sizes, or not?
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: mark at codesourcery dot com (Mark Mitchell)
- Cc: dj at redhat dot com (DJ Delorie), gdr at integrable-solutions dot net, kenner at vlsi1 dot ultra dot nyu dot edu, gcc at gcc dot gnu dot org
- Date: Mon, 14 Aug 2006 16:50:13 -0400 (EDT)
- Subject: Re: does gcc support multiple sizes, or not?
>
> DJ Delorie wrote:
> >> However, the C++ definition has been amended at the last Lillehammer
> >> meeting to allow that cast as "conditionally supported": either it is
> >> valid or it errors out. the compiler has to tell.
> >
> > Also, the mechanism to create multiple pointer sizes
> > (attribute((mode))) is a GCC extension.
>
> I'm very suspicious of allowing users to specify this via attributes.
> Having pointers-to-objects or pointers-to-functions with different sizes
> (within one of those classes) seems problematic, but perhaps you can say
> more about how you expect this to work in the presence of conversions
> and such.
Aren't there some targets (like ia64-hpux) that support two different
sizes of pointers, it also be nice to be able for the user access to them
also from a high level so they can write code that can call between the
two ABIs.
-- Pinski