Help - Search - Members - Calendar
Full Version: Gcc -o4 Flag
OESF Forums > Distros, Development, and Model Specific Forums > Everything Development > OpenZaurus/Opie/Qtopia
ShiroiKuma
I'm playing around with optimizing compiled packages to run fine on Ångström, but the question isn't really Ångström-specific.

I've seen on Meanie's blog on building Firefox natively that he used the -O4 option in CFLAGS.

I've looked but not found anything substantive on this flag. One Finnish page on the web states that if -On has n higher than 3, then the flag is automatically interpreted as -O3. Is this so? Or is there a difference between these?
speculatrix
that's using the Spinal Tap version of the compiler - everyone else's goes up to O3, but the 'tap' version goes up to O4.

smile.gif
---

I wonder whether anyone will understand this joke?
adf
QUOTE(speculatrix @ Mar 27 2007, 09:18 PM)
that's using the Spinal Tap version of the compiler - everyone else's goes up to O3, but the 'tap' version goes up to O4.

smile.gif
---

I wonder whether anyone will understand this joke?
*

11
Meanie
QUOTE(adf @ Mar 28 2007, 09:16 AM)
QUOTE(speculatrix @ Mar 27 2007, 09:18 PM)
that's using the Spinal Tap version of the compiler - everyone else's goes up to O3, but the 'tap' version goes up to O4.

smile.gif
---

I wonder whether anyone will understand this joke?
*

11
*



oh man, these geek jokes are way over my head. can someone explain it so some dummy like me can understand it?
speculatrix
If you haven't seen the film "Spinal Tap", the joke won't make any sense.
ShiroiKuma
QUOTE(speculatrix @ Mar 28 2007, 11:17 AM)
If you haven't seen the film "Spinal Tap", the joke won't make any sense.
*

smile.gif Didn't get the joke either...

How about the original issue though, is there really an -O4 flag that furthers optimization, or is it just the same as -O3?
koen
QUOTE(ShiroiKuma @ Mar 28 2007, 12:58 PM)
QUOTE(speculatrix @ Mar 28 2007, 11:17 AM)
If you haven't seen the film "Spinal Tap", the joke won't make any sense.
*

smile.gif Didn't get the joke either...

How about the original issue though, is there really an -O4 flag that furthers optimization, or is it just the same as -O3?
*



Just keep in mind that you're reading from *slow* media into a tiny amount of RAM, so 'optimized' binaries will execute slower in the end. I heard the people at nokia use -Os for certain applications because execution time is IO-limited.
ZDevil
Well then, i have another curiosity question: how would a Firefox build with -O2 optimization (which seems to be very common for compiling Z apps) compared with the one with -O4?
When do we use which level of optimization?
And how do we know? :?
Da_Blitz
just stick with -O2, -O3 or higer dont always produce faster binaries and somtimes will not compile (as i have found out)

if you really need spped -O640K should be good enough for anyone
ShiroiKuma
QUOTE(Da_Blitz @ Apr 1 2007, 09:11 AM)
if you really need spped -O640K should be good enough for anyone
*

What does this one do? And how does it compare in terms of speed, subjectively what you feel when using the compiled app, with -O2 or -O3 ?
adf
QUOTE(ShiroiKuma @ Apr 1 2007, 05:44 PM)
QUOTE(Da_Blitz @ Apr 1 2007, 09:11 AM)
if you really need spped -O640K should be good enough for anyone
*

What does this one do? And how does it compare in terms of speed, subjectively what you feel when using the compiled app, with -O2 or -O3 ?
*


Wasn't that MS humor?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.