Re: Compiling 2.2.19 with -O3 flag

Robert Love (rml@tech9.net)
24 May 2002 10:55:20 -0700


On Fri, 2002-05-24 at 10:44, Christoph Hellwig wrote:

> -Os implies -O2 + additional size-reducing features:
>
> [hch@sb hch]$ grep -r optimize_size /work/people/hch/gcc/gcc | wc -l
> 250
> [hch@sb hch]$
>
> A bunch of matches are in ChangeLog and most are target-specific,
> but I guess you got the point..

I know this...maybe I am not being clear. I realize -Os is a derivate
of -O2, but is it not an interesting note if -Os can be as fast (or
faster) than -O2 and still generate smaller binaries? That is my point.

If -Os is equivalent in speed to -O2 but also generates smaller objects,
then why have -O2? If it does not generate smaller objects (which is
what my testing has shown) then it is worthless. Unless it is faster
than -O2, like Alan said, in which case then the two options need to
rethink themselves ;-)

Robert Love

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/