0

「-xW」フラグの効果は何ですか? これは、リンク段階で gcc/icc に提供されることがあります。clang はこれを破り、次のように述べています。

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

これは、gcc ではなく Intel C コンパイラのオプションです。こちらを参照してください。

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

-xW -- SSE2 および SSE 命令を生成でき、Intel(R) Pentium(R) 4 プロセッサおよび SSE2 を備えた Intel(R) Xeon(R) プロセッサを最適化できます。これは、インテル(R) 64 アーキテクチャーを使用する Linux システムのデフォルトです。このオプションは、-march=pentium4 を指定するのと同じです。

于 2013-03-02T19:01:44.040 に答える