intel C++ usage
不同版本的Intel c++对应于不同的VisualStudio edition,e.g. intel C++ 9 is used in vC++6.0 and visual studio 2003 but can't work in Visual Studio 2005. So you need the intel Cplusplus compile above 9.0 to run with visual studio 2005. Intel compile does not have an IDE, so you have to use Visual studio for convenient. when you compile a solution in vs2005 using intel C++, it will change the .sln file to an intel C++ .sln file. I have found something about intel C++ usage as follows:
在windows下直接安装即可。
我只安装了Intel C++ Compiler for 32-bit Applications;Enhanced Debugger两项。
安装完成后,它会自动在环境变量中加入:
ICPP_COMPILE91 值为: 安装目录\Compiler\C++.1
IDB_PATH 值为: 安装目录\Debugger\
INCLUDE 值为: %ICPP_COMPILER91%\IA32\Include
INTEL_LICENSE_FILE 值为: C:\Program Files\Common Files\Intel\Licenses
LIB 值为: %ICPP_COMPILER91%\IA32\Lib
PATH 添加: %ICPP_COMPILER91%\IA32\Bin;%IDB_PATH%IDB.1\IA32\Script
2)其编译器的缺省行为:
(1)产生可执行文件;
(2)在配置文件中调用指定的选项;
(3)搜索库的头文件,该库是在环境变量中指定的;
(4)设置16字节对其;
(5)显示错误和警告信息;
(6)执行标准优化;
(7)在支持Unicode编码的操作系统上,处理Unicode编码的文件名;
(8)如果不能识别某些命令行选项,将忽略它并显示它。
3)编译文件
icl x.cpp
对多个文件的编译
icl x.cpp y.cpp z.cpp
用makefile编译项目
nmake -f your_project.mak CPP=icl.exe LINK32=xilink.exe
4)编译器识别的输入文件
——————————————————————-
File Name Interpretation Action
file.c C 源文件 编译器通过
——————————————————————-
file.C C++源文件 编译器通过
file.CC
file.cc
file.cpp
file.cxx
——————————————————————-
file.lib 库文件 链接器通过
——————————————————————-
file.i 预处理文件 标准输出(stdout)通过
——————————————————————-
file.obj 目标文件 连接器通过
——————————————————————-
file.asm 汇编文件 汇编器通过
5)编译器识别的输出文件
file.i 预处理文件 用/P选项产生
file.obj 目标文件 用/Fo选项产生
file.asm 汇编语言文件 用/S选项产生
file.exe 可执行文件 编译器缺省产生
卸载Intel C++ Compiler后Visual C++ 6.0不能工作了
5)编译器识别的输出文件
file.i 预处理文件 用/P选项产生
file.obj 目标文件 用/Fo选项产生
file.asm 汇编语言文件 用/S选项产生
file.exe 可执行文件 编译器缺省产生
2 卸载Intel C++ Compiler后Visual C++ 6.0不能工作了
安装了Intel C++ Compiler进行评估,现在评估结束了,决定卸载。开始卸载之后,Visual C++
6.0开始罢工了,报告无法找到xicl6.exe进行编译。搜索了下注册表,发现Intel C++
Compiler在安装时候修改了Visual C++的工具设置,但卸载时没有恢复。可以修改下面两个地方:
1、HKEY_CURRENT_USER\Software\Microsoft\DevStudio.0\Build
System\Components\Platforms\Win32 (x86)\Tools-bit C/C++ Compiler
for 80