Re: A patch for linux 2.1.127

Tom Vier (nester@nester.dyn.ml.org)
Mon, 9 Nov 1998 22:03:01 -0500 (EST)


> It is not a good idea to compile the kernel with -O6. -O6 includes
> -finline-functions, and automatic inlining messes up a lot of fast
> paths (mainly because egcs is not able to do register life splitting
> yet)

i thought -O3 turned on inline functions? is egcs different than gcc,
in that respect?

gcc man page:
-O3 Optimize yet more. This turns on everything -O2
does, along with also turning on -finline-func-
tions.

<snipped example code>

> So just use -O2 instead of -O6.

just curious; i heard that freebsd always defaults to -O3 for their
kernel. is this cuz they code their kernel different, taking
-finline-functions into account, or cuz they just like to throw the
highest opt level on it?

--
Tom Vier - 0x82B007A8
nester@sekurity.org      | goto the Zero Page at:
Tortured Souls Software  | http://www.erols.com/thomassr/zero/

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