[Gc] size_t and ptrdiff_t size

Peter Colson pcolson at connexus.net.au
Thu Nov 25 22:38:58 PST 2004


OS/400 (at least V5 onwards) using teraspace capability (to present a more
unix-like memory model) has 8-byte pointers and long long's and 4-byte
longs.

It's supposed to be a reasonably POSIX-compliant system.

______________________________________
Regards,
Peter.


> -----Original Message-----
> From: gc-bounces at napali.hpl.hp.com [mailto:gc-bounces at napali.hpl.hp.com]
> On Behalf Of Ben Hutchings
> Sent: Tuesday, 23 November 2004 4:17 AM
> To: gc at napali.hpl.hp.com
> Subject: Re: [Gc] size_t and ptrdiff_t size
> 
> MenTaLguY wrote:
> > While ISO C is pretty free with its definitions of size_t and ptrdiff_t,
> > apparently POSIX places an additional restriction on them -- neither
> ought
> > to be wider than unsigned long or long, respectively.
> >
> > So, while that restriction works as expected on an LP64 system, on an
> > LLP64 system size_t and friends are limited to 32 bits.
> >
> > This means that there isn't really a standard portable integer type that
> > is guaranteed to be as wide as a pointer.
> 
> Which POSIX systems use LLP64?
> 
> Ben.
> _______________________________________________
> Gc mailing list
> Gc at linux.hpl.hp.com
> http://www.hpl.hp.com/hosted/linux/mail-archives/gc/
> 




More information about the Gc mailing list