Re: -Os versus -O2

Rene Herman
2007-06-25T01:44:55Z

On 06/25/2007 03:33 AM, david@lang.hm wrote:

> is the list of what's included in -O2 vs -Os different for different
> CPU's? what about within a single family of processors? (even in the x86
> family the costs of jumps, loops, and cache misses varies drasticly)

At least not in the example Duron/Athlon case. Both -march=athlon{,-4) but
64K versus 256K L2 which I'd expect to be an important difference in the -Os
versus -O2 behaviour.

Rene.