Re: [PATCH 0/4] Compile kernel with -fwhole-program --combine

From: Rob Landley
Date: Fri Aug 25 2006 - 16:09:57 EST


On Thursday 24 August 2006 11:24 am, David Woodhouse wrote:
> Using a combination of these two compiler options for building kernel
> code leads to some useful optimisation

BusyBox has been doing this for months now: "build at once" is one of our
config options. I'd like to point out that gcc eats needs several hundred
megabytes of ram to do this and you have no useful progress indicator between
starting and ending. But the result is definitely smaller.

We also tell the linker "--sort-common --gc-sections" which may or may not
apply here...

Rob
--
Never bet against the cheap plastic solution.
-
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/