看在楼主换了这么可爱的PP上也应该呀!! :P:P:P
http://www.linuxfans.org/nuke/modules/Forums/images/avatars/uploads/81240580441ce9a5fe0abb.gif 这里有GCC编译的参数。大家可以参考一下。
http://gcc.gnu.org/onlinedocs/gcc-3.4.0/gcc/Optimize-Options.html#Optimize%20Options/
Score |So?| Switch (annotation)
------------------------------------------------------------------------------
34.0 | Maybe | -fforce-mem (-O2)
32.3 |Yes| -frename-registers (-O3)
32.1 |Yes| -funsafe-math-optimizations (fast math)
32.0 |Yes| -fcse-skip-blocks (-O2)
30.7 |Yes| -fdelete-null-pointer-checks (-O2)
29.6 |Yes| -fno-thread-jumps (! -O1)
29.5 |Yes| -fno-omit-frame-pointer (! -O1)
29.5 |Yes| -mieee-fp
29.3 | Maybe | -fno-math-errno (fast math)
28.2 | Maybe | -fstrict-aliasing (-O2)
27.9 | Maybe | -frerun-cse-after-loop (-O2)
27.8 |Yes| -finline-limit
27.7 |Yes| -mno-push-args
27.1 |Yes| -fno-signaling-nans (fast math)
26.9 |Yes| -falign-jumps (-O2 GCC 3.3)
26.6 |Yes| -malign-double
26.5 |Yes| -fno-defer-pop (! -O1)
26.3 | Maybe | -ffinite-math-only (fast math)
26.2 |Yes| -fsched-interblock (-O2 GCC 3.3)
25.5 | Maybe | -fno-trapping-math (fast math)
25.3 |Yes| -fno-cprop-registers (! -O1)
25.3 | No| -fgcse (-O2)
24.4 | Maybe | -fno-crossjumping (! -O1)
24.4 |Yes| -fcaller-saves (-O2)
24.3 | Maybe | -mno-align-stringops
23.5 | Maybe | -falign-loops (-O2 GCC 3.3)
23.4 |Yes| -maccumulate-outgoing-args
23.4 |Yes| -fno-if-conversion2 (! -O1)
23.4 | Maybe | -fno-merge-constants (! -O1)
23.0 | Maybe | -fno-delayed-branch (! -O1)
22.9 | Maybe | -fcse-follow-jumps (-O2)
22.8 | Maybe | -freorder-functions (-O2 GCC 3.3)
22.8 | Maybe | -freduce-all-givs
22.8 | Maybe | -fpeephole2 (-O2)
22.5 |Yes| -fsched-spec (-O2 GCC 3.3)
22.4 | Maybe | -fmove-all-movables
21.7 | Maybe | -falign-labels (-O2 GCC 3.3)
21.2 | Maybe | -minline-all-stringops
21.0 | Maybe | -fschedule-insns2 (-O2)
19.3 | No| -fexpensive-optimizations (-O2)
18.9 | Maybe | -ftracer
18.2 | No| -finline-functions (-O3)
18.1 | Maybe | -frerun-loop-opt (-O2)
16.9 | No| -foptimize-sibling-calls (-O2)
16.8 | No| -fno-guess-branch-probability (! -O1)
16.4 | Maybe | -freorder-blocks (-O2)
15.9 | No| -fno-if-conversion (! -O1)
15.1 | Maybe | -fstrength-reduce (-O2)
14.1 | No| -fregmove (-O2)
14.1 | No| -fomit-frame-pointer
14.1 | No| -fschedule-insns (-O2)
13.8 | No| -fprefetch-loop-arrays
12.9 | No| -fno-inline
9.3 | No| -funroll-loops
8.9 | No| -fno-loop-optimize (! -O1)
7.8 | No| -ffloat-store
7.6 | No| -fnew-ra
0.0 | No| -funroll-all-loops
0.0 | No| -mfpmath=387
0.0 | No| -mfpmath=sse
0.0 | No| -mfpmath=sse,387
0.0 | No| -momit-leaf-frame-pointer
各种CPU的推荐CFLAGS参数可以参考:
http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&p=4263447#4263447 我也写过一个,不过是什么版本的gcc倒是记不得了.那个时候参考了gentoo.org得论坛. fan兄,以后系统安装版就托付给你了……
fan兄,以后系统安装版就托付给你了……
:x:x:x:x :neutral:
没有办法的办法……
页:
1
[2]