+ -
当前位置:首页 → 问答吧 → [已解决]CFLAGS变量里的 -march值:k8, opteron, athlon64, athlon-fx 是一个意思吗?

[已解决]CFLAGS变量里的 -march值:k8, opteron, athlon64, athlon-fx 是一个意思吗?

时间:2009-02-17

来源:互联网

如题,
在gcc的手册里这样写的:
代码:
-mtune=cpu-type
Tune to cpu-type everything applicable about the generated code, except for the ABI and the set of available instructions. The choices for cpu-type are: 
...
k6
AMD K6 CPU with MMX instruction set support. 

k6-2, k6-3
Improved versions of AMD K6 CPU with MMX and 3dNOW! instruction set support. 

athlon, athlon-tbird
AMD Athlon CPU with MMX, 3dNOW!, enhanced 3dNOW! and SSE prefetch instructions support. 

athlon-4, athlon-xp, athlon-mp
Improved AMD Athlon CPU with MMX, 3dNOW!, enhanced 3dNOW! and full SSE instruction set support. 

k8, opteron, athlon64, athlon-fx
AMD K8 core based CPUs with x86-64 instruction set support. (This supersets MMX, SSE, SSE2, 3dNOW!, enhanced 3dNOW! and 64-bit instruction set extensions.) 

...
谢谢先,,,

作者: bijianing   发布时间: 2009-02-17

他不是说了吗,只不过起了N个名而已,不过这马甲也太多了

作者: coderoar   发布时间: 2009-02-17

引用:
作者: bijianing
如题,
在gcc的手册里这样写的:
谢谢先,,,
从 gcc 4.2.1 以上版本开始都不用考虑这些, -march=native 就足够了,自动检测。

作者: poet   发布时间: 2009-02-17

现在都忽略啦? 我还是设置一下把.谢谢啦…
对了,我想问一下,怎么在标题里加上[以解决]

作者: bijianing   发布时间: 2009-02-17

“编辑” ---》“高级模式”

作者: coderoar   发布时间: 2009-02-17

谢谢,,,,,,,,

作者: bijianing   发布时间: 2009-02-18