Re: Compiling 2.2.19 with -O3 flag

Christoph Hellwig (hch@infradead.org)
Fri, 24 May 2002 18:44:02 +0100


On Fri, May 24, 2002 at 09:54:04AM -0700, Robert Love wrote:
> On Fri, 2002-05-24 at 09:45, Marcus Meissner wrote:
>
> > > Heh, now that is interesting.
> >
> > Not really, -Os implies -O2, cf gcc/toplev.c:
>
> Well, according to Alan -Os outperforms -O2. So either the code is
> smaller _and_ faster - and that is surely interesting - or the code is
> _not_ smaller and -Os is a misnomer. Seems interesting to me.

-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..

-
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/