Should I use 'long' instead of 'int' on 64-bits in langs with fixed type size (like Java, C#)

Viewed 9953

In 10, or even 5 years there will be no [Edit2: server or desktop] 32-bit CPUs.

So, are there any advantages in using int (32bit) over long (64bit) ?
And are there any disadvantages in using int ?


Edit:

  1. By 10 or 5 years I meant on vast majority of places where those langs are used

  2. I meant which type to use by default. This days I won't even bother to think if I should use short as cycle counter, just for(int i.... The same way long counters already win

  3. registers are already 64-bit, there is already no gain in 32 bit types. And I think some loss in 8 bit types (you have to operate on more bits then you're using)

3 Answers
Related