"Frank Rizzo" <none@none.comwrote in message
news:%23c7VqsBuGHA.3912@TK2MSFTNGP03.phx.gbl...
Quote:
Hello,
>
I need to port a fairly large app to x64, as it needs access to more than
2GB. So I ported the app to VS2005 (from vs2003). Now the Project
Properties have a Build Tab, which has a Platform Target dropdown. There
is AnyCPU and x64. I've been reading that AnyCPU means that the app will
run in 64 bit mode on a x64 machine and in x86 mode on the 32bit machine.
Is this really the case?
Yes, it's really true. And, to be clear, you have to be running the 64bit
version of Windows.
You can also run your app on an Itanium.
Quote:
>
Also, does running an app compiled with AnyCPU on a 64bit box ensure that
it will be able to access more than 2GB, or do I have to compile for x64
to make that happen?
If you compile for AnyCPU you will still be able to access more than 2GB on
a 64bit OS.
Quote:
>
Are there any performance differences for running on a 64bit box between
AnyCPU and x64 settings?
I'm sure there are but, I don't know what they are or how extensive the
difference might be. I do know that it's NOT a 32bit/64bit difference.
Quote:
>
Are all the intrinsic data types (int, float, etc...) still the same size
in x64 as they are in x86?
As far as I know, the only thing that changes size is IntPtr.
Quote:
>
Are there any other questions that I should be asking before porting the
app to x64?
>
If you install your app with an MSI installer, you will need two versions,
one for 64 bit and one for 32bit (and maybe one for Itanium) even though the
installers will all be installing the same executable.