Messages in this thread | ![/](/images/icornerl.gif) | | Date | Thu, 6 Feb 2003 16:51:14 +0100 | From | Andi Kleen <> | Subject | Re: [Lse-tech] gcc -O2 vs gcc -Os performance |
| |
> All done with gcc-2.95.4 (Debian Woody). These machines (16x NUMA-Q) have > 700MHz P3 Xeons with 2Mb L2 cache ... -Os might fare better on celeron > with a puny cache if someone wants to try that out.
-Os on 2.95 is not too useful. It only started becomming useful on 3.1+, even more so on the upcomming 3.3.
e.g. there was one report of ACPI shrinking by >60k by recompiling it with -Os on 3.1. ACPI is only slow path code so that is completely reasonable.
Best would be of course to use profile feedback to let the compiler decide where to generate small and where to generate fast&big code. But that has problems with the maintainability (it will be hard to generate the same vmlinux as users for debugging/ksymoops reading purposes)
-Andi - 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/
| ![\](/images/icornerr.gif) |