您的位置:首页 > 编程语言 > Go语言

使用Intel编译器(5)PGO(8)编译器其它工具

2011-12-21 15:26 381 查看
参考手册:

http://software.intel.com/sites/products/documentation/studio/composer/en-us/2011Update/compiler_c/index.htm

说明:本系列文章为个人笔记,如有不正确之处,请参考官方相关文档,如果错误发现,我会尽量更新修改。另外,以下内容不保证对于所有版本的编译器都正确,编译器的实现也可能有一些变化之处,具体参考官方文档。

更多说明请参考/article/8516772.html中补充说明部分。

Summary:前面介绍了编译器和PGO相关的工具,这里介绍的工具不一定是PGO相关的工具。

(1) 编译器选项映射工具

对于编译器,有很多选项,对于那些熟悉于某一平台(比如win)的选项,但是对其它平台(比如Lin)的同功能的选项不太熟悉的时候,如果需要转换平台,比较头疼的就是去寻找相同功能的选项。编译器选项映射工具提供了这一功能来帮助用户找到另一平台的同功能选项。

PS:不支持Mac OS。

1. 使用方式:

有两种方式使用这一功能,第一是使用编译器的选项/Qmap-opts;第二是直接运行map_opts工具。

2. 使用编译器选项

语法:<compiler command> <map-opts option> <compiler option(s)>

举例:icl /Qmap-opts /Od /FA /Qipo

Intel(R) Compiler option mapping tool

mapping Windows options to Linux for C++

'-Qmap-opts' Windows option maps to
--> '-map-opts' option on Linux
--> '-map_opts' option on Linux

'-Od' Windows option maps to
--> '-O0' option on Linux

'-FA' Windows option maps to
--> no equivalent Linux option found

'-Qipo' Windows option maps to
--> '-ipo' option on Linux


3. 使用map_opts

语法:map_opts [-nologo] -t<target OS> -l<language> -opts <compiler option(s)>

其中,<target OS> = {l|linux|w|windows}、<language> = {f|fortran|c},都是可选的。

举例:map_opts -opts /Od /FA /Qipo

Intel(R) Compiler option mapping tool

mapping Windows options to Linux for C++

'-Od' Windows option maps to
--> '-O0' option on Linux

'-FA' Windows option maps to
--> no equivalent Linux option found

'-Qipo' Windows option maps to
--> '-ipo' option on Linux


(2) 无
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: