LinuxSir.cn,穿越时空的Linuxsir!

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

大家贴一下自己使用的优化参数,好不好

[复制链接]
发表于 2004-11-18 17:34:58 | 显示全部楼层 |阅读模式
大家贴一下自己使用的优化参数,好不好
不要emerge info,太长了


CHOST="i686-pc-linux-gnu"
CFLAGS="-O3 -pipe -fomit-frame-pointer -march=pentium3 -mcpu=pentium3 -mmmx -msse -mfpmath=sse"
CXXFLAGS="-O3 -pipe -fomit-frame-pointer -march=pentium3 -mcpu=pentium3 -mmmx -msse -mfpmath=sse"
LDFLAGS="-Wl,-O3"
图拉丁赛扬1.3G
发表于 2004-11-18 17:38:25 | 显示全部楼层
-mmmx -msse会导致mozilla产品出现问题。比如在拖拽的时候崩溃。
不是编译mozilla的问题,是使用这个参数编译gtk的问题。
发表于 2004-11-18 18:00:46 | 显示全部楼层

  1. Portage 2.0.51-r2 (default-x86-2004.2, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2
  2. .6.9-gentoo-r2 i686)
  3. =================================================================
  4. System uname: 2.6.9-gentoo-r2 i686 AMD Athlon(tm)
  5. Gentoo Base System version 1.4.16
  6. ccache version 2.3 [enabled]
  7. Autoconf: sys-devel/autoconf-2.59-r5
  8. Automake: sys-devel/automake-1.8.3
  9. Binutils: sys-devel/binutils-2.14.90.0.8-r1
  10. Headers:  sys-kernel/linux-headers-2.4.21-r1
  11. Libtools: sys-devel/libtool-1.5.2-r7
  12. ACCEPT_KEYWORDS="x86"
  13. AUTOCLEAN="yes"
  14. CFLAGS="-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3  -pipe -fforce
  15. -addr -fomit-frame-pointer -funroll-loops  -frerun-cse-after-loop  -frerun-l
  16. oop-opt -falign-functions=4  -maccumulate-outgoing-args  -ffast-math  -fpref
  17. etch-loop-arrays"
  18. CHOST="i686-pc-linux-gnu"
  19. LDFLAGS="-Wl,-O1,--enable-new-dtags"
  20. CXXFLAGS="${CFLAGS}"
  21. COMPILER=""
  22. CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde
  23. /3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/co
  24. nfig /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvi
  25. ps/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/
  26. config/ /usr/share/texmf/xdvi/ /var/qmail/control"
  27. CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
  28. CXXFLAGS="-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3  -pipe -ffor
  29. ce-addr -fomit-frame-pointer -funroll-loops  -frerun-cse-after-loop  -frerun-loop-opt -falign-functions=4  -maccumulate-outgoing-args  -ffast-math  -fprefetch-loop-arrays"
  30. DISTDIR="/usr/portage/distfiles"
  31. FEATURES="autoaddcvs ccache distlocks sandbox"
  32. GENTOO_MIRRORS="http://mirror.gentoo.gr.jp [url]http://mirror.averse.net/pub/gentoo/[/url] [url]ftp://mirror.averse.net/pub/gentoo[/url] [url]http://gentoo.binarycompass.org[/url] [url]http://ftp.easynet.nl/mirror/gentoo/[/url]"
  33. MAKEOPTS="-j2"
  34. PKGDIR="/usr/portage/packages"
  35. PORTAGE_TMPDIR="/var/tmp"
  36. PORTDIR="/usr/portage"
  37. PORTDIR_OVERLAY="/usr/local/portage"
  38. SYNC="rsync://rsync.gentoo.org/gentoo-portage"
  39. USE="3dnow X aalib acpi alsa apache2 apm arts avi berkdb bitmap-fonts bonobo breakme cdr cjk crypt cscope cups directfb eds encode esd f77 faad flac foomaticdb fortran gdbm gif glc glx gnome gnome2 gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml imlib ithreads jack java jpeg kde ldap libg++ libwww mad mikmod mmx motif mpeg mysql nas ncurses nls oggvorbis opengl oss pam pdflib perl php png python qt quicktime readline rplay ruby sdl slang sndfile spell sse ssl stroke svga tcltk tcpd tetex tiff truetype video_cards_radeon vim-with-x x86 xine xinerama xml2 xmms xv zlib"

复制代码
发表于 2004-11-18 18:13:25 | 显示全部楼层

Portage 2.0.51-r3 (default-linux/x86/2004.2, gcc-3.3.4, glibc-2.3.4.20041102-r0, 2.6.9-nitro2 i686)
=================================================================
System uname: 2.6.9-nitro2 i686 Intel(R) Pentium(R) 4 CPU 1.80GHz
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=i686 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://mirror.averse.net/pub/gentoo/ ftp://mirror.averse.net/pub/gentoo http://ftp.gentoo.or.kr/ http://gentoo.gg3.net/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb bitmap-fonts cjk crypt cups eds encode esd f77 fam flac foomaticdb fortran gdbm gif glc gnome gpm gstreamer gtk gtk2 guile imagemagick imlib java jpeg junit libg++ libwww mad mikmod mmx motif mozilla mpeg ncurses nls nptl nptlonly objc oggvorbis opengl oss pam pdflib perl png python quicktime readline samba sdl slang spell sse ssl svga tcpd tiff truetype x86 xml xml2 xmms xv zlib"

P4处理器!
发表于 2004-11-18 18:19:33 | 显示全部楼层
为何我在/etc/make.conf中加入LDFLAGS="-Wl,-O1,--enable-new-dtags"并且执行了env-update &&source /etc/profile后emerge info没有出现这个参数?
发表于 2004-11-18 18:21:48 | 显示全部楼层
我是手动加的:p
发表于 2004-11-18 18:34:02 | 显示全部楼层
在编译时才加的?
 楼主| 发表于 2004-11-18 18:46:49 | 显示全部楼层
我发现-mcpu=pentium3 -mmmx -msse -mfpmath=sse不会出现在info里。为什么?是不是因为不是gcc的优化参数的关系?
发表于 2004-11-18 19:15:45 | 显示全部楼层
CFLAGS="-march=athlon-tbird -O3 -mmmx -m3dnow -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -falign-functions=4 -maccumulate-outgoing-args -ftracer"
CHOST="i686-pc-linux-gnu"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s"
发表于 2004-11-18 22:20:31 | 显示全部楼层
CFLAGS="-O3 -pipe -march=pentium4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
USE="X aalib alsa apache2 apm arts avi berkdb bitmap-fonts bonobo cjk crypt cups dga directfb divx4linux emacs encode esd f77 fbdev flash font-server foomaticdb fortran freetype gd gdbm ggi gif glc glx gnome gphoto2 gpm gtk gtk2 gtkhtml hardened imap imlib java jpeg jpeg2k kde ldap libg++ libwww linguas_zh_CN lzo mad mikmod mmx mng motif moznocompose moznoirc moznomail mozsvg mozxmlterm mpeg multilib mysql ncurses network nls nntp nptl nvidia objc oggvorbis opengl oss pam pdflib perl pic png prelude pwdb python qq qt quicktime readline samba sdl slang snmp socks5 spell sse ssh ssl svg svga tcltk tcpd threads tiff truetype truetype-fonts type1-fonts unicode usb videos wmf wxwindows x86 xine xinerama xml xml2 xmms xprint xscreensaver xv xvid zlib"
CXXFLAGS="${CFLAGS}"
FEATURES="candy"

FETCHCOMMAND='/usr/bin/proz --no-getch -s ${URI} -P ${DISTDIR}'
GENTOO_MIRRORS="ftp://ftp.tsinghua.edu.cn/OS/Linux/distribution/gentoo/ http://mirror.gentoo.gr.jp/ http://cudlug.cudenver.edu/gentoo/ http://gentoo.gg3.net/"
PORTAGE_BINHOST="http://gentoo.linuxsir.cn/download/gentoo/grp/2004.2/i686/pentium4/All/"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/myport"

LINGUAS="zh_CN"
ALSA_CARDS="intel8x0 intel8x0m"
LANGUAGE="CHINSIM"
DO_NOT_COMPILE="kdm kaddressbook-plugins debian ktip kpackage kopete kmail ksirc korganizer kdvi kpdf kandalf kjots kpager kregexpeditor ksig kppp kget kdeprintfax knewsticker noatun kdat kdict karm kandy  kfax kview kaboodle juk kpovmodeler kviewshell kfaxview korn kontact irkick ktnef kmid kscd kaudiocreator plugins wizards"
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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