.NET and 64 Bit

  • Thread starter Thread starter cody
  • Start date Start date
C

cody

On a pure 64Bit processor, will .NET be slow because int is always 32bit,
regardless on which platform it runs? Or does the jitter internally
propagate the int to an int64?
In the C/C++ language they made the size of int platform dependent just for
that reason.
Am I right with these assumptions?
 
Hi cody

On a pure 64Bit processor, will .NET be slow because int is always 32bit,
regardless on which platform it runs? Or does the jitter internally
propagate the int to an int64?


Later, there will be a native 64-Bit version of .NET 2.0 ...


Then the JITer will use 64-Bit for adresses.
For data on 64-Bit processors:

according intel for EM64T (same technology as AMD uses)
http://developer.intel.com/technology/64bitextensions/300834.htm
30083402.pdf

1.4.1. Address-Size and Operand-Size Prefixes
In 64-bit mode, the default address size is 64 bits

The intel Itanium IA64 architecture
is even more flexibel (and complex), it should handle 32-bit data as well.



Thus there should be NO penalty if you use Int32 (C#: int) data types,
as the JITer can use the 32-bit support of the CPU.


If you realy need a platform depending type, use:
IntPtr & inspect IntPtr.Size
 
Back
Top