lkml.org 
[lkml]   [2003]   [Aug]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [OT] sizeof C types ...
On Mon, 25 Aug 2003, J.A. Magallon wrote:

> If you don't go away from linux, OK.
>
> Really:
> char = 8bit
> long int = 32 or 64, depending on arch

Well then you can argue that 'long int' is 32bit on 64bit platforms on
Windows (the Windows API dictates LLP64) </pedantry>

> long long = 64 bits
>
> int = ??? almost anything, depending on arch and compiler.
> Run DOS on your P4, with an old compiler, and int defaults to 16 bits.
> I think the same also happens for Win16.
>
> int is defined ad the native word size of the hardware+OS.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:48    [W:1.401 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site