0

“-xW”标志的作用是什么?我看到这有时会在链接阶段提供给 gcc/icc。铿锵声打破了这一点,说:

clang: error: language not recognized: 'W'

用法示例:http ://www.spec.org/cpu2000/results/res2004q1/cpu2000-20040208-02830.cfg

4

2 回答 2

2

这只是一个 ICC 选项:

     -xW  --  Can  generate SSE2 and SSE instructions, and it can
     optimize for Intel(R) Pentium(R) 4 processors  and  Intel(R)
     Xeon(R)  processors  with SSE2. This is the default on Linux
     systems using Intel(R) 64 architecture.  This option is  the
     same as specifying -march=pentium4.
于 2013-03-02T19:01:11.217 回答
0

这是英特尔 C 编译器的一个选项,而不是 gcc - 请参见此处:

http://www.rcac.purdue.edu/userinfo/resources/common/compile/compilers/intel/man/icc.txt

-xW -- 可以生成 SSE2 和 SSE 指令,并且可以针对带有 SSE2 的 Intel(R) Pentium(R) 4 处理器和 Intel(R) Xeon(R) 处理器进行优化。这是使用 Intel(R) 64 架构的 Linux 系统的默认设置。此选项与指定 -march=pentium4 相同。

于 2013-03-02T19:01:44.040 回答