Results 1 to 5 of 5
What you guys make of these optimizations? I know -ffast-math can be dodgy but it's supposed to be stable enough for a ~x86 desktop box, plus from what I hear ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-26-2005 #1Just Joined!
- Join Date
- Aug 2005
- Posts
- 83
CFLAGS
What you guys make of these optimizations? I know -ffast-math can be dodgy but it's supposed to be stable enough for a ~x86 desktop box, plus from what I hear there's a noticable performance increase. I omitted -funroll-loops because of the problems I've heard it can cause with the kernel (Im building the kernel and bootstrapping with very basic flags anyway), and the amount of bloat it creats.
My cpu is a Intel Celeron (Northwood P4 core), so it's basically a pentium 4 with a **** cache.Code:CFLAGS="-O3 -pipe -finline-functions -fgcse -fmove-all-movables -fomit-frame-pointer -falign-functions=4 -falign-jumps=4 -fvisibility-inlines-hidden -fweb -fmerge-all-constants -ffast-math -ftracer -fprefetch-loop-arrays -march=pentium4 -mtune=pentium4"
- 10-26-2005 #2is what I have for my PII 300MHz machine.Code:
CFLAGS="-O3 -march=pentium2 -fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -ftracer -pipe"
- 10-28-2005 #3Linux Engineer
- Join Date
- Mar 2005
- Posts
- 1,431
Something like this:
I don't think I've compiled an entire system with -O3 before, but I've used -O2 and -Os.Code:CFLAGS="-Os -march=atlhon-tbird -fomit-frame-pointer -pipe -mmmx -m3dnow -fforce-addr
I used to use -ffast-math, but I removed it after seing the warning in the GCC manual. Can you notice a huge performance gain?
- 10-28-2005 #4Linux Engineer
- Join Date
- Apr 2005
- Location
- Belgium
- Posts
- 1,429
Just regular stuff, since what I compile must be usable on other boxes too.Code:CFLAGS="-O2 -march=i486 -mcpu=i686"
** Registered Linux User # 393717 and proud of it
** Check out www.zenwalk.org
** Zenwalk 2.8 - Xfce 4.4 beta 2- 2.6.17.6 kernel = Slack on steroids! **
- 10-29-2005 #5Linux Enthusiast
- Join Date
- Jun 2005
- Location
- Odessa, FL
- Posts
- 586
mine's pretty simple:
it's a dual-cpu machine...Code:CFLAGS="-march=athlon-mp -mfpmath=sse -m3dnow -m32 -pipe -O3 -fomit-frame-pointer"


Reply With Quote
