4 ms·
use longs because it's not arch dependent
by coding123 4y ago
use longs because it's not arch dependent
- xdavidliu 4y agolong in C and C++ is absolutely arch dependent. In Java it's not depedendent, but neither are any of the other primitives in Java.
- acuozzo 4y agolong is only guaranteed by to be a minimum of 32 bits. It's 64 on Tru64 UNIX systems, for instance.
- messe 4y agolong is definitely arch dependent. It’s even operating system dependent: It’s 32-bits on 32-bit x86 unix-likes and windows, as well as 32-bit on 64-bit windows. On 64-bit unix-likes it’s 64-bit. Embedded is so varied (and generally 16 or 32 bit), that I’m not even go to hazard a guess on the distribution there.