On Sat, Jun 14, 2008 at 08:43:23AM +0100, David Woodhouse wrote: > On Fri, 2008-06-13 at 22:52 +0100, Oleg Verych wrote: > > Using same `gcc -E` principle, I once had a dream to create > > build with something like "whole-kernel-at-time" optimising > > compiler option: > > Doing it for the whole kernel probably doesn't buy you a whole lot more > than doing it a bit more selectively, which is what I was doing in > http://lkml.org/lkml/2006/8/24/212 For the interesting CONFIG_MODULES=n case it most likely can give you much smaller code. But Denys had section garbage collection patches, and combining the per-module compilation with section garbage collection might get near at the results of compiling the whole kernel at once? > I think Segher has been playing with it a bit recently, and confirms my > suspicion that combining kernel/ with arch/$ARCH/kernel, and mm/ with > arch/$ARCH/mm, is also a big win. >... The big problem I see here is that we lose the link order. Not unfixable, but quite nasty to sort out. > dwmw2 cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed -- To unsubscribe from this list: send the line "unsubscribe linux-embedded" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html