Why my app is 32 bit only?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

A newb here - beg your pardon for a stupid question...

I've made a simple "hello word" type C# console app in VS 2003.
Nothing what I can see in the project properties shows that it is built for
x86.
When the exe runs on WinXP 64 bit, the task manager displays is as 32-bit.
Why the just-in-time compiler won't make it 64-bit?
OTOH, the same app recompiled with VS 2005 and .net 2.0, runs as 64-bit.
What has changed?

--PA
 
Pavel A. said:
A newb here - beg your pardon for a stupid question...

I've made a simple "hello word" type C# console app in VS 2003.
Nothing what I can see in the project properties shows that it is built
for
x86.
When the exe runs on WinXP 64 bit, the task manager displays is as 32-bit.
Why the just-in-time compiler won't make it 64-bit?
OTOH, the same app recompiled with VS 2005 and .net 2.0, runs as 64-bit.
What has changed?

Simple - the 2.0 framework supports 64 bit, the 1.1 framework does not.

The app produced by the 1.1 compiler has the architecture in the PE file
header set to "x86", while the app produced by the 2.0 compiler has the
architecture set to "Any CPU".

-cd
 

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

Back
Top