LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 775|回复: 5

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

[复制链接]
发表于 2009-2-17 11:37:56 | 显示全部楼层 |阅读模式
如题,
在gcc的手册里这样写的:

  1. -mtune=cpu-type
  2. 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:
  3. ...
  4. k6
  5. AMD K6 CPU with MMX instruction set support.

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

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

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

  12. k8, opteron, athlon64, athlon-fx
  13. 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.)

  14. ...
复制代码

谢谢先,,,
发表于 2009-2-17 11:52:44 | 显示全部楼层
他不是说了吗,只不过起了N个名而已,不过这马甲也太多了
回复 支持 反对

使用道具 举报

发表于 2009-2-17 13:21:28 | 显示全部楼层
Post by bijianing;1948652
如题,
在gcc的手册里这样写的:
谢谢先,,,


从 gcc 4.2.1 以上版本开始都不用考虑这些, -march=native 就足够了,自动检测。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-2-17 14:55:10 | 显示全部楼层
现在都忽略啦? 我还是设置一下把.谢谢啦…
对了,我想问一下,怎么在标题里加上[以解决]
回复 支持 反对

使用道具 举报

发表于 2009-2-17 15:41:47 | 显示全部楼层
“编辑” ---》“高级模式”
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-2-17 19:58:31 | 显示全部楼层
谢谢,,,,,,,,
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表