Hello everyone,


I am using VSTS 2008, there are 4 different command windows under "Visual
Studio Tools" from Programs of Start Menu.

They are,

Visual Studio 2008 Command Prompt

Visual Studio 2008 x64 Cross Tools Command Prompt

Visual Studio 2008 x64 Win64 Command Prompt

Visual Studio 2008 Itanium Cross Tools Command Prompt

I am using x64 machine and always use x64 binary, sometimes I will use x86
binary. What are the differences between the 4 command window and for my
requirement which one(s) should I use?


thanks in advance,
George

Re: command window of VC by Jochen

Jochen
Wed Oct 08 03:51:47 CDT 2008

Hi George!

> Visual Studio 2008 Command Prompt
=> Runs as x86 and generated x86 code

> Visual Studio 2008 x64 Cross Tools Command Prompt
=> Runs as x86 and generated x64 code

> Visual Studio 2008 x64 Win64 Command Prompt
=> Runs as x64 and generated x64 code


> Visual Studio 2008 Itanium Cross Tools Command Prompt
=> Runs as x86 and generated IA64 code

Greetings
Jochen

Re: command window of VC by George

George
Wed Oct 08 04:21:00 CDT 2008

Thanks Jochen,


> > Visual Studio 2008 x64 Cross Tools Command Prompt
> => Runs as x86 and generated x64 code

I am a little confused about your terms. For example, the above one. :-)

- Could you give more descriptions about what do you mean "Runs as x86"
please?
- What means "generated x64 code"? For example, I just run dumpbin in the
command line window, there is nothing generated.


regards,
George

Re: command window of VC by Jochen

Jochen
Wed Oct 08 04:28:05 CDT 2008

Hi George!

> - Could you give more descriptions about what do you mean "Runs as x86"
> please?
The compiler is a x86 app!?

> - What means "generated x64 code"? For example, I just run dumpbin in the
> command line window, there is nothing generated.

Replace "generated" with" generates"; just a typo..

From my understanding "cl" is for exampel a compiler and "generates"
some compiled code... or did I miss something?


Greetings
Jochen

Re: command window of VC by George

George
Wed Oct 08 04:39:00 CDT 2008

Thanks Jochen,


I usually do not make compile from command line. :-)

1.

My scenario is using command line to analyze binary, for example using
dumpbin. In this scenario, my understanding from your description is,

- runs as means run dumpbin as x86 process or run as x64 process?
- generates XXX has no meaning in this context of using dumpbin.

My understanding correct?

2.

- If the binary is x86 which I use dumpbin to analyze, which command line
window should I use?

If the binary is x64 which I use dumpbin to analyze, which command line
window should I use?


regards,
George

Re: command window of VC by Jochen

Jochen
Wed Oct 08 05:00:38 CDT 2008

Hi George!

In general, it has almost no effect if you do not compile/link.

It just uses the "x86" or "x64" version of your dumpbin. But both
version should behave the same way....

Greetings
Jochen

Re: command window of VC by George

George
Wed Oct 08 05:11:01 CDT 2008

Thanks for clarification, Jochen!


> It just uses the "x86" or "x64" version of your dumpbin. But both
> version should behave the same way....

BTW: I have made some investigation that seems x86 and x64 are using
different cl.exe compilers under amd64 sub-folder and under SDK bin root
folder?


regards,
George

Re: command window of VC by Jochen

Jochen
Wed Oct 08 05:19:15 CDT 2008

Hi George!

>> It just uses the "x86" or "x64" version of your dumpbin. But both
>> version should behave the same way....
>
> BTW: I have made some investigation that seems x86 and x64 are using
> different cl.exe compilers under amd64 sub-folder and under SDK bin root
> folder?

Very good investigation!
But didn't I said this all the time?

Greetings
Jochen

Re: command window of VC by George

George
Wed Oct 08 06:06:01 CDT 2008

Hi Jochen,


> Very good investigation!
> But didn't I said this all the time?

You never mentioned x86 and x64 are using different compilers. You just said
run as XXX, you know x86 binary could run as x86 and run as x64 by using WoW.
:-)


regards,
George