一、编译选项
当我们采用 -O9 来编译程序时,或许文件字节数是最大的,但是往往其运行速度也是最快的。 根据不同的机器架构,你可以把下面的语句加入 /etc/profile 。
|
CODE:
i686:
export CFLAGS=-O9 -funroll-loops -ffast-math -malign-double -mcpu=pentiumpro -march=pentiumpro -fomit-frame-pointer -fno-exceptions i586: export CFLAGS=-O3 -march=pentium -mcpu=pentium -ffast-math -funroll-loops -fomit-frame-pointer -fforce-mem -fforce-addr -malign-double -fno-exceptions i486: FLAGS=-O3 -funroll-all-loops -malign-double -mcpu=i486 -march=i486 -fomit-frame-pointer -fno-exceptions |