lkml.org 
[lkml]   [2002]   [May]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Compiling 2.2.19 with -O3 flag
From
Date
On Fri, 2002-05-24 at 07:42, Alan Cox wrote:

> Bench it and see. From my own experience -O3 made the kernel a lot larger
> and reduced overall performance - in part because the kernel already
> explicitly figures out what it wants inlined.
>
> Interestingly enough -Os outperformed -O2

Heh, now that is interesting.

Or maybe not - not too long ago I did some tests of the various
optimization options in gcc 2.96 or so and found that -O2 generates
smaller code in most cases than -Os. -Os also did not perform as good,
but I was just testing a few bits of code - nothing as versatile as the
kernel.

The end result was I recommend -O2 for both performance and size. Maybe
I should retest against the kernel...

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/

\
 
 \ /
  Last update: 2005-03-22 13:26    [W:0.183 / U:0.704 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site