🔒 Locked
Gentoo users
Advertisement
Original Post
Anyone who uses Gentoo post your CFLAGS in /etc/make.conf. Mine: "-O3 -march=pentium4 -fomit-frame-pointer -pipe -mmmx -msse -msse2 -ffast-math -mfpmath=sse,387 -frerun-cse-after-loop -frerun-loop-opt -fexpensive-optimizations -fforce-addr -fprefetch-loop-arrays -falign-functions=4 -foptimize-register-move"
U going all out for performance over size there huh ;-)
Quote:
Original post by paulecoyote
U going all out for performance over size there huh ;-)
Yep.
CFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe"
Mine are pretty basic and may be the default.
Mine are pretty basic and may be the default.
Nothing new. All those are so basic.
Quote:
Original post by vNistelrooy
Nothing new. All those are so basic.
Ugh. You are why Gentoo has a bad wrap.
Most of those options aren't doing anything.
-mmmx, -msse, -msse2: Selecting a Pentium 4 processor implies these.
-frerun-cse-after-loop, -frerun-loop-opt, -fexpensive-optimizations, -falign-functions, -foptimize-register-move: Already enabled by -O3.
-ffast-math - I don't recommend this. It might be useful for most programs, but assuming it will be okay with all your programs probably isn't a good idea.
Fruny has the right idea.
-mmmx, -msse, -msse2: Selecting a Pentium 4 processor implies these.
-frerun-cse-after-loop, -frerun-loop-opt, -fexpensive-optimizations, -falign-functions, -foptimize-register-move: Already enabled by -O3.
-ffast-math - I don't recommend this. It might be useful for most programs, but assuming it will be okay with all your programs probably isn't a good idea.
Fruny has the right idea.
I wish I could find the source, but it's one of the Gentoo devs:
"-ffast-math: If I want my math done wrong, I'll ask my cat."
CFLAGS="-march=athlon-xp -O2 -fomit-frame-pointer -pipe"
Basic, simple, stable, and fast. The new SSA stuff in gcc 3.5 will do far more for optimization (full vectorizing like icc, f.e) than any existing compiler flags.
I used to use -O3, but it adds very little to speed and a lot to the compile time. So, not worth it. The packages that really need optimization (mplayer, Firefox, OpenOffice, glibc, gcc) are so brittle that the ebuilds strip most of the CFLAGS. Even KDE suffers from this to some extent.
"-ffast-math: If I want my math done wrong, I'll ask my cat."
CFLAGS="-march=athlon-xp -O2 -fomit-frame-pointer -pipe"
Basic, simple, stable, and fast. The new SSA stuff in gcc 3.5 will do far more for optimization (full vectorizing like icc, f.e) than any existing compiler flags.
I used to use -O3, but it adds very little to speed and a lot to the compile time. So, not worth it. The packages that really need optimization (mplayer, Firefox, OpenOffice, glibc, gcc) are so brittle that the ebuilds strip most of the CFLAGS. Even KDE suffers from this to some extent.
Quote:
Original post by wild_pointer
Ugh. You are why Gentoo has a bad wrap.
lol
I didn't have any problems with -ffast-math so far. I've compiled X, Gnome and KDE without problems, plus all the smaller programs I use.
Quote:This one struck me as particularly funny:
Original post by wild_pointer Quote:
Original post by vNistelrooy
Nothing new. All those are so basic.
Ugh. You are why Gentoo has a bad wrap.
"I essentially started using Gentoo because my ....ing KDE clock would never show the right time in Red Hat."
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement