Walter Bright wrote: > Robert Jacques wrote: >> On Tue, 07 Jul 2009 23:01:58 -0400, Walter Bright >> <[email protected]> wrote: >>> Robert Jacques wrote: >>>> (Caveat: most 32-bit compilers probably defaulted integer to int, >>>> though 64-bit compilers are probably defaulting integer to long.) >>> >>> All 32 bit C compilers defaulted int to 32 bits. 64 bit C compilers >>> are setting int at 32 bits for sensible compatibility reasons. >> >> But are the 64-bit compilers setting the internal "integer" type to 32 >> or 64 bits? (I'm not running any 64-bit OSes at the moment to test this) > > Not that I've seen. I'd be very surprised if any did.
>From wikipedia: http://en.wikipedia.org/wiki/64-bit model short int long llong ptrs Sample operating systems LLP64 16 32 32 64 64 Microsoft Win64 (X64/IA64) LP64 16 32 64 64 64 Most UNIX and UNIX-like systems (Solaris, Linux, etc) ILP64 16 64 64 64 64 HAL SILP64 64 64 64 64 64 ?
