32bit 64bit - Why do C compilers specify long to be 32-bit and long long to be 64-bit? -


Did not get much sense in making 64-bit and reserve long for the 128-bit number until the reality became longer?

Yes, this is understandable, but "taller" as Microsoft's "32" - Bits

As far as I know, so far in all mainstream systems, Windows is the only OS where "long" 32-bit are on Unix and Linux, this is 64-bit.

All compilers for Windows will compile 32 "bit" to "long" on Windows to maintain compatibility with Microsoft.

For this reason, I avoid using "int" and "long". Sometimes I'll use "int" for error codes and bullion (in C), but I I will never use it for code which depends on type size.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -