Re: -O2 vs -O3

From: Jamie Lokier (
Date: Thu May 25 2000 - 10:34:03 EST

Thomas Pornin wrote:
> ... These heuristics are tuned for userland code, not kernel code, where
> the situation is different (for instance, memory is much more
> expensive in the kernel, since kernel memory cannot be swapped out).
> Moreover, some experiments showed that, indeed, using -O3 (or -O9)
> instead of -O2 did not give a faster kernel. Reality rulez.

Perhaps -Os should be used (optimise for space). I read it's sometimes
faster anyway.

-- Jamie

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

This archive was generated by hypermail 2b29 : Wed May 31 2000 - 21:00:14 EST