Re: Compiling x86 with and without frame pointer

From: Willy Tarreau (willy@w.ods.org)
Date: Mon Nov 25 2002 - 03:52:29 EST


 
> Anyway it makes me wonder, whether kernelcompilation shouldn't be
> configurable between a "optimize for (compressed image) size" and a
> "optimize for speed" option... I'd go for speed... (and always omitting
> frame-pointers doesn't seem to as fast as omitting them only in leaf
> functions).

hehe :-)
I've put this in my kernels for about 2 years now. You can also reduce the
image size with -malign-jumps=0 -mpreferred-stack-boundary=2 and -mcpu=i386.

I also use some other options, but don't have them at hand right now. But it
basically gives me slightly smaller kernels, which is pretty good for install
CD or diskettes.

Cheers,
Willy
-
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 : Sat Nov 30 2002 - 22:00:10 EST