发新话题
打印

变态的人进来

变态的人进来

一个外国hacker的一个网站看到的据说如果你不怕死,那么这个东西就是
对你的gentoo优化到死(optimize your box to death)原文如下:
-fprefetch-loop-arrays
-ffast-math
-fforce-addr (-fforce-mem is implied by -O3)
-falign-functions=4
-funroll-loops ( bigger exe, maybe faster, usually not worth it, I don't use it)

记住打开你的优化参数噢,默认是没有打开的

望了说是针对pentium3优化的

兄弟们上啊[/SIZE]      
象一阵风 拂过我身边 忽然间 想要去很远 和你去看繁华世界

TOP

Athlon (AMD)

CFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer
-ffast-math  -funroll-loops -fforce-addr -falign-functions=4"
CXXFLAGS="${CFLAGS}"
note : -m3dnow and -mmmx optimisations are implied by -march=athlon

Athlon-tbird, aka K7 (AMD)

CFLAGS="-march=athlon-tbird -O3 -pipe -fforce-addr -fomit-frame-pointer
  -funroll-loops -falign-functions=4 -maccumulate-outgoing-args"
CXXFLAGS="${CFLAGS}"

note : -m3dnow and -mmmx optimisations are implied by -march=athlon-tbird


Someone reported having a system working with no problem on an Athlon XP 2000+ with : Athlon XP 2000+

CFLAGS="-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3
-pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop
-frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args -ffast-math
-fprefetch-loop-arrays"
CXXFLAGS="${CFLAGS}"      
象一阵风 拂过我身边 忽然间 想要去很远 和你去看繁华世界

TOP

真的假的啊,兄弟你测试了吗      
你一定可以的,只要你努力

TOP

1) set up Gentoo 1.1a w/stage3 per install docs
2) installed kernel-2.4.19-r4, preempt, lowlatency
3) *important: merged binutils-2.12+ in order to take advantage of combreloc (but built kernel with 2.11 beforehand just to be safe)
4) *USE flags="-march=i686 -O3 -pipe -fomit-frame-pointer" Many people use a lot of crazy optimizations, but the only one to me that makes a noticable difference in "feel" is -fomit-frame-pointer, and I don't need to debug my system so its all good.
4) *rebuilt glibc with new binutils installed
5) finish install per docs. (I use metalog, and lilo instead of grub)
6) reboot
7) use hdparm to make sure DMA is enabled
8) you now have a Gentoo system ready to build apps with the combreloc tweak (you can test this by running apps with 'LD_DEBUG=statistics' and checking the relocations)
9) build X, kdebase, kdenetwork, mozilla, vim, etc... (doesn't matter)
10) *add fam to start on boot (allows KDE to track files quicker)
11) *add your hostname to /etc/hosts (if it's not already there)      
象一阵风 拂过我身边 忽然间 想要去很远 和你去看繁华世界

TOP

使用最新的1.3stage1可以增加10%的速度,官方网站看的,最好用最新的gcc,也就是先升级完了gcc再编译比较好      
象一阵风 拂过我身边 忽然间 想要去很远 和你去看繁华世界

TOP

[QUOTE]最初由 阿泰 发布
[B]真的假的啊,兄弟你测试了吗 [/B][/QUOTE]

只是部分优化,还没优化到死。

你怀疑什么?你忧郁什么      
象一阵风 拂过我身边 忽然间 想要去很远 和你去看繁华世界

TOP

呵呵既然兄弟都这么说了回家爽一下      
你一定可以的,只要你努力

TOP

发新话题