Feb 11 2009

linux 下优化编译参数参考

Published by David at 5:46 am under Unix|Linux

http://en.gentoo-wiki.com/wiki/Safe_Cflags
访问此地址可以查看详细信息。

Xeon w/EM64T (also Pentium 4 P6xx or Celeron M 5xx)
vendor_id : GenuineIntel
cpu family : 15
model : 4,6
model name : Intel(R) Xeon(R) CPU XXXXMHz
model name : Intel(R) Celeron(R) M CPU 5xx @ XXXGHz
32-bit profile (x86):

CHOST=”i686-pc-linux-gnu”
CFLAGS=”-march=prescott -O2 -pipe -fomit-frame-pointer”
CXXFLAGS=”${CFLAGS}”
64-bit profile (amd64):

CHOST=”x86_64-pc-linux-gnu”
CFLAGS=”-march=nocona -O2 -pipe -fomit-frame-pointer”
CXXFLAGS=”${CFLAGS}”

标签:none

转载原创文章请注明,转载自:Tuifei.com[http://www.tuifei.com]

本文链接: http://www.tuifei.com/2009/02/11/safe_cflags.htm

Trackback URI | Comments RSS

Leave a Reply

Close
E-mail It