Subject: Kernel compile 100 times faster (this sound provocating,doesnt it?:)
To: None <current-users@NetBSD.ORG>
From: Carsten Hammer <chammer@phyd2hammer.uni-bielefeld.de>
List: current-users
Date: 02/02/1996 13:53:37
Hi,
When compiling a currentkernel on a 030/25Mhz this can need many hours.
Most of the time is wasted in including the same files.
I imagine to speed up this by joining all C-Sources by a script
used instead of gcc (by changing GCC=gcc to GCC=collectcfiles) 
and cating this to one file. After this multiple includes should
be removed and the whole file feed to gcc.

Are there any very important restrictions that dont allow
to do this? Are there some "mutual exklusions"? (headerfiles or sources
that cant be feed to the C-Compiler at the same time)
Are there any internal limits in gcc that dont allow to do this?


Of course this doesnt give anything to the real developers as the 
compiletime may be reduced a lot for a complete compile but is
most probably lots longer than to compile only one of the C-Sourcefiles
and link the kernel again.
But maybe under certain circumstanzes such a thing would be useful for
them too as this way maybe does not need a make depend.

ciao
Carsten