3 ms·
>There seems no sensible reason why ints are 32 bit on a 64 bit platform The reasoning I have always heard is to keep RAM usage constant. If you have a standar
by wongarsu 10y ago
>There seems no sensible reason why ints are 32 bit on a 64 bit platform
The reasoning I have always heard is to keep RAM usage constant. If you have a standarts complient C program that uses primarily int as datatype, then with 64 bit ints the 64 bit version of the program uses twice as much memory as the 32 bit version of the same program.
I'm not sure I would call it a great reason, but 32 bit ints may have been the pragmatic thing to do.