Re:Re: [2.6 patch] add a config option for -Os compilation

From: Matt
Date: Sat Oct 18 2003 - 06:52:14 EST


> The main effect of -Os compared to -O2 (besides disabling some
> reordering of the code and prefetching) is the disabling of various
> alignments. I doubt that's a win on all CPUs.

Well the big win I found from -Os is the disabling of code inlining.
So I found I got much better code from -finline-limit=100. I
found this value after trial and error (via a bit of bench marking).
Mind you this is what works for my athlon.. Mind you the
difference isnt that huge.. I found turning on -Winline and
-finline-limit handy for finding the culprits of huge inlines..

matt


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