
#####How To Build Intel(R) Itanium(TM) based binaries and IA-32 Binaries using a Microsoft* Developer Studio Project and the Compiler Selection Tool#####

1) Open select32_64 workspace in the iselect\samples\select32_64 directory (select32_64.dsw)

2) Note the select_32_64 project's 4 different project 'Configurations' by going to the
   Build menu -> Configuration option.  You should see the following Configurations listed:
	- Win32 Debug
	- Win64 Debug
	- Win32 Release
	- Win64 Release

In order to create the additional Win64 Debug and Release Configurations in the project, the following was done:
a) The '/FD' switch was removed from both Win64 configurations in the Project Settings -> C/C++ Tab -> Project Options because the Microsoft* Platform SDK does not compile when this switch is used.
b) The 'WIN64' Preprocessor definition option was added to both Win64 Configurations in the Project Settings -> C/C++ tab.  This tells the Compiler Selection Tool that an Intel(R) Itanium(TM) based compiler should be used.
c) The '/machine:IA64' option was added to both Win64 configurations in the Project Settings -> Linker tab -> Project Options. This tells the Compiler Selection Tool that an Intel(R) Itanium(TM) based linker should be used.


##### To build IA-32 Binaries #####

1) Make the Win32 Debug Configuration active by selecting the Build menu -> Set Active Configuration.  Select 'select32_64 - Win32 Debug'.

2) Build your project with the 32-bit Microsoft* compiler.  Rebuild the project by selecting the Build menu -> Rebuild All.  You should see the Microsoft* 32-bit compiler called by default.  You should see something like the following:

Compiling...
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
cl /MLd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Fp"Debug/select32_64.pch" /Yc"stdafx.h" /Fo"Debug/" /Fd"Debug/" /FD /GZ /c 

3) Build your project with the 32-bit Intel(R) C++ Compiler.  In order to do this, first
select the Intel(R) C++ Compiler for 32-bit apps by going to the Tools menu -> Select
Compiler option.  Select 'Intel(R) C++ Compiler' under the 'IA-32 Compiler Selection' box.
You should see something like the following:

Compiling...
Intel(R) C++ Compiler V5.0 for 32-bits
Copyright (C) 1985-2000 Intel Corporation.  All rights reserved.
icl /ML /W3 /GX /O2 /D WIN32 /D NDEBUG /D _CONSOLE /D _MBCS /FpRelease/select32_64.pch /Yustdafx.h /FoRelease/ /FdRelease/ /FD /c c:\temp\select32_64\select32_64\select32_64.cpp
select32_64.cpp


##### To build Intel(R) Itanium(TM) based Binaries #####

1) Make the Win64 Debug Configuration active by selecting the Build menu -> Set Active Configuration.  Select 'select32_64 - Win64 Debug'.

2) Build your project with the 64-bit Microsoft* compiler.  Rebuild the project by selecting the Build menu -> Rebuild All.  You should see the Microsoft* Platform SDK compiler called by default.  You should see something like the following:

Compiling...
Microsoft (R) C/C++ Optimizing Compiler Version 13.00.8781 for IA-64
Copyright (C) Microsoft Corp 1984-2000. All rights reserved.
cl /MLd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D "WIN64" /Fp"Win64 Debug/select32_64.pch" /Yc"stdafx.h" /Fo"Win64 Debug/" /Fd"Win64 Debug/" /GZ /c 
   "c:\temp\select32_64\select32_64\StdAfx.cpp"

3) Build your project with the Intel(R) Itanium(TM) based C++ Compiler.  In order to do this, first
select the Intel(R) C++ Compiler for Intel(R) Itanium(TM) based apps by going to the Tools menu -> Select
Compiler option.  Select 'Intel(R) C++ Compiler' under the 'Intel(R) Itanium(TM) Compiler/ Environemnt Selection' box.
You should see something like the following:

Compiling...
Intel(R) C++ Compiler for Itanium(TM)-based applications. 
Version 5.0.1 Beta, Build 20010213 
Copyright (C) 1985-2000 Intel Corporation.  All rights reserved.
ecl /MLd /W3 /Gm /GX /ZI /Od /D WIN32 /D _DEBUG /D _CONSOLE /D _MBCS /D WIN64 "/FpWin64 Debug/select32_64.pch" /Ycstdafx.h "/FoWin64 Debug/" "/FdWin64 Debug/" /GZ /c c:\temp\select32_64\select32_64\StdAfx.cpp
StdAfx.cpp


