LinuxSir.cn,穿越时空的Linuxsir!

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

新入手i5 2300 求推荐CFLAGS

[复制链接]
发表于 2011-1-8 19:00:56 | 显示全部楼层 |阅读模式
机器换代, 新cpu I5 2300
希望大家推荐个CFLAGS 速度优先  准备gentoo x64

目的 榨干cpu最后一滴油水
发表于 2011-1-8 22:37:59 | 显示全部楼层
1.
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mtune=generic -O2 -pipe"
CXXFLAGS="${CFLAGS}"

2.
eselect profile set default/linux/amd64/10.0/desktop
BTW
default/linux/amd64/10.0/no-multilib 慎用
回复 支持 反对

使用道具 举报

发表于 2011-1-9 21:16:00 | 显示全部楼层
http://en.gentoo-wiki.com/wiki/Safe_Cflags/Intel
Gentoo wiki上有一篇文章,不过在最顶上提了一句:
Warning: GCC 4.2 and above support -march=native, which automatically detects the optimum settings to use based on your processor. -march=native also detects and applies additional settings beyond -march specific to your CPU, (eg. -msse4). Unless you have a specific reason not to (e.g. distcc cross-compiling), you should probably be using -march=native rather than anything listed below. Check your native options using gcc -c -Q -march=native --help=target
回复 支持 反对

使用道具 举报

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

本版积分规则

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