underlying type of size_t

Nathan Sidwell nathan at codesourcery.com
Mon Jul 8 09:35:11 UTC 2002


Hi,
The ABI document does not specify the underlying type of size_t.
This affects the mangling of, for instance, operator new (size_t).
The C++ std follows the C std.
The C std says it is an implementation defined unsigned integral type.
Some implementations have more than one suitable unsigned integral type.
Which should be choosen?

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)

nathan
-- 
Dr Nathan Sidwell   ::   http://www.codesourcery.com   ::   CodeSourcery LLC
         'But that's a lie.' - 'Yes it is. What's your point?'
nathan at codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan at acm.org



More information about the cxx-abi-dev mailing list