LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: fpemud

我认为的一个gentoo的缺点,也请大家帮忙提供解决方法

[复制链接]
发表于 2011-3-8 00:19:21 | 显示全部楼层
Post by adam8157;2129851
As of version 4.3.0, the gcc compiler offers the -march-native switch that enables CPU auto-detection and automatically selects optimizations supported by the local machine at gcc runtime.

不是很熟悉gentoo, 这样直接改cflags, 不动use flag是不是就达到效果了?


我好像有体会。。两台机器都没专门配置"硬件"use 只是用了-march-native
结果amd的机器上面就自动打开3dnow intel就打开sse什么的,就不会打开3dnow了。。
回复 支持 反对

使用道具 举报

发表于 2011-3-8 14:57:01 | 显示全部楼层
@ls,

如果你用distcc的话,要小心这个native,因为其他机器会依据自己的cpu生成代码。
回复 支持 反对

使用道具 举报

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

本版积分规则

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