News for hackers. Stuff that matters.
Re:My int is too big by wongarsu on Friday July 15, 2016 @07:29PM (#12104461)
>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.

There are no comments on this comment yet.