On Tue, June 28, 2005 10:47 am, Mauro Venanzi said:
> why have you the "Os" flag? waht is it?
> the same dubt for mtune
> try to write -O2  not Os

-Os optimizes for size and works just fine for me.  In systems with
limited RAM it is likely to give better performance than -O2 since you are
less likely to swap.  Most of the optimizations are the same, except that
you aren't going to unroll loops or anything like that.  Many of the
size-sacrificing optimizations don't add much performance-wise in the
first place.

I believe that somebody posted a lengthy discussion regarding compiler
optimizations in the forums complete with benchmarks.  This largely
influenced my decision to switch to -Os since at the time I was running
with 512MB RAM.  Now I'm at 1GB, but even so I wouldn't say have RAM to
burn, and disk cache is probably going to do more for performance than
having loops unrolled...
-- 
[email protected] mailing list

Reply via email to