[cxx-abi-dev] underlying type of size_t

Jason Merrill jason at redhat.com
Mon Jul 8 10:35:23 UTC 2002


>>>>> "Nathan" == Nathan Sidwell <nathan at codesourcery.com> writes:

> The ABI document does not specify the underlying type of size_t.

This is platform-specific.  Typically, it's unsigned int on 32-bit systems
and unsigned long on 64-bit ones, though some 32-bit targets also use
unsigned long.

> On i686-pc-linuxgnu, g++ has unsigned int, whereas
> AFAICT, intel has chosen unsigned long (from their test suite provided
> at http://www.intel.com/software/products/opensource/tools1/abi.htm)

On i686-pc-linux-gnu, size_t has always been unsigned int.

But isn't the Intel testsuite ia64-specific, anyway?  Last I checked, the
Intel ix86 compiler still used the EDG mangling.

Jason



More information about the cxx-abi-dev mailing list