Re: Compiling x86 with and without frame pointer

Willy Tarreau (willy@w.ods.org)
Mon, 25 Nov 2002 09:52:29 +0100



> 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/