What is the difference between HostX86 and x86, HostX64 and x64?

After installing Visual Studio, you may find programs with the same name appear in different folders such as the program cl.exe. There are several cl.exe’s:

  • C:\Microsoft Visual Studio\xxxx\Community\VC\Tools\MSVC\xx.xx.xx.xx\bin\HostX86\x86\cl.exe
  • C:\Microsoft Visual Studio\xxxx\Community\VC\Tools\MSVC\xx.xx.xx.xx\bin\HostX86\x64\cl.exe
  • C:\Microsoft Visual Studio\xxxx\Community\VC\Tools\MSVC\xx.xx.xx.xx\bin\HostX64\x86\cl.exe
  • C:\Microsoft Visual Studio\xxxx\Community\VC\Tools\MSVC\xx.xx.xx.xx\bin\HostX64\x64\cl.exe

What do HostX86/HostX64 stand for? What do x86/x64 stand for?

Well, HostX86/HostX64 are so called host platform; they are the platforms the compiler cl.exe is supposed to be put on(hosted). x86/x64 are so called target platform  which are the platforms where cl.exe generated programs are supposed to run. But the host platform does not mean too much. As you see, this computer(Windows 64bit) hosts 4 versions of cl.exe’s all of which can run without problem because of the x86 virtual machines on x64 OS.

There seems another kind of platform called build platform which means the machine you are building the compiler(not using the compiler to build other programs).

Did you like this?
Tip admin with Cryptocurrency

Donate Bitcoin to admin

Scan to Donate Bitcoin to admin
Scan the QR code or copy the address below into your wallet to send some bitcoin:

Donate Bitcoin Cash to admin

Scan to Donate Bitcoin Cash to admin
Scan the QR code or copy the address below into your wallet to send bitcoin:

Donate Ethereum to admin

Scan to Donate Ethereum to admin
Scan the QR code or copy the address below into your wallet to send some Ether:

Donate Litecoin to admin

Scan to Donate Litecoin to admin
Scan the QR code or copy the address below into your wallet to send some Litecoin:

Donate Monero to admin

Scan to Donate Monero to admin
Scan the QR code or copy the address below into your wallet to send some Monero:

Donate ZCash to admin

Scan to Donate ZCash to admin
Scan the QR code or copy the address below into your wallet to send some ZCash:

Leave a Reply