Compile for x64 - Difference?

S

Sin Jeong-hun

I ran an executable written in C# and compiled for 'any CPU' on Windows
XP x64 edition. It didn't run as a 32bit application. (You know, if it
did, there's a *32 suffix at the Task manager". The file also ran on
32bit Windows XP.

A few minuits ago, I compiled it for 'x64' and it didn't run on 32bit
Windows XP. If an excutable compiled for any CPU can run as a 64bit
applicaton, why should I compile it for 'x64'? Is there any difference?
 
J

Jeroen Vandezande

Sin Jeong-hun said:
I ran an executable written in C# and compiled for 'any CPU' on Windows
XP x64 edition. It didn't run as a 32bit application. (You know, if it
did, there's a *32 suffix at the Task manager". The file also ran on
32bit Windows XP.

A few minuits ago, I compiled it for 'x64' and it didn't run on 32bit
Windows XP. If an excutable compiled for any CPU can run as a 64bit
applicaton, why should I compile it for 'x64'? Is there any difference?

AFIAK it has something todo when you are not using only managed code...
for example using native 64 bit DLL's etc.
normally you would use 'any CPU'

Best Regards,

Jeroen Vandezande
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top