Re: [gtk-list] Re: OT: size_t and 64 bits



On Thu, Oct 21, 1999 at 09:55:29PM -0400, Havoc Pennington wrote:
> 
> On Thu, 21 Oct 1999, John C Atkeson wrote:
> >   
> >   If I recompile my gtk code to 64-bit, does size_t become a 64-bit
> > integer?  
> > I'm trying to use types that will scale as our systems advance.
> >   
> 
> If you use plain "int" and "unsigned int" (or gint and guint) they will be
> 64 bits on 64-bit platforms.
...

That's not the case on the Alpha.  int's are 32 bits, long's are 64.
Check out the reasoning for the LP64 model over the other variants:
http://www.unix-systems.org/version2/whatsnew/lp64_wp.html
I believe that most other 64-bit systems follow this model as well
(e.g., AIX, Irix).

regards,
--andy



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]