Re: Compiling 2.2.19 with -O3 flag

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Fri May 24 2002 - 09:42:26 EST


> I would like to ask when compiling with -O3 flag on a
> kernel such as 2.2.19, what harm / side effect will I
> feel later on if any? will i loose speed in other area's?

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



This archive was generated by hypermail 2b29 : Fri May 31 2002 - 22:00:13 EST