[Gc] size_t and ptrdiff_t size
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
It's supposed to be a reasonably POSIX-compliant system.
> -----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
> > 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?
> Gc mailing list
> Gc at linux.hpl.hp.com
More information about the Gc