I have recently installed Intel Parallel Studio XE 2017 on Windows 7 64-bit that had Microsoft Visual Studio Professional 2015 (Version 14.0.23107.0 D14REL). It works fine, and I can build Win32 build configuration from legacy projects migrated from Visual Studio 2013. However, despite me using the /Qm32 compiler option, the code appears to be 64-bit. (the size of .exe is about 2 times larger than previous builds) I would like to be able to build 32-bit executables for compatibility with legacy projects.
I checked the build log generated by the compiler, and it confirmed that the compiler binary being used is 64-bit:
1>ClCompile: C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.1.143\windows\bin\intel64\icl.exe /c /Qm32 ...
How can I use the IA-32 version of the compiler? I mean the one in bin\ia32\icl.exe. I have tried several things like running VS2015 from the 32-bit command shell installed by the Intel Parallel Studio, or setting TARGET_ARCH or C_TARGET_ARCH environment variables to "ia32".
Also, in Visual Studio menu Tools/Options/Intel Compiler and Tools/C++, I changed the Intel C++ Compiler 17.0 Platform toolset to "Intel (R) C++ Compiler 17.0.1.143 [IA-32]". But the entry in the build log still shows the IDE using the 64-bit compiler.
Also, how can I tell from the shell whether the exec is 32- or 64-bit? Is there an analog of file or ldd utilities on Windows?