[Gc] size_t and ptrdiff_t size

Ben Hutchings ben.hutchings at businesswebsoftware.com
Mon Nov 22 09:16:44 PST 2004


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.


More information about the Gc mailing list