small (very ) compilation speedup
claudiamoroder at st-ulrich.suedtirol.net
Fri Feb 22 07:34:02 GMT 2002
it was clear to me that real optimization is only possible by rearanging the
sourcecode, but this is a hard work. The first thing to do, should be to use
only the really necessary include files in the different sources and to have
dependencies in the makefile. This means that it is necessary to split
Von: "John Malmberg" <wb8tyw at qsl.net>
An: "andreas moroder" <claudiamoroder at st-ulrich.suedtirol.net>
Gesendet: Freitag, 22. Februar 2002 02:05
Betreff: Re: small (very ) compilation speedup
> I have suggested this before, but by reorganizing the libraries and the
> source, even faster compile and link times can be obtained on all
> Unfortunately the while the trend has been to organize things so that
> every image and every library references a symbol in a different one so
> that no build optimizations can be done.
> As I am not running UNIX or a current build, I can not produce
> benchmarks at this time that would be applicable.
> But it does appear that by moving some functions to other modules and
> libraries, I could probably cut both the build time, and the resulting
> executable size.
> wb8tyw at qsl.net
> Personal Opinion Only
> andreas moroder wrote:
> > Hello,
> > not all of us have a fast machine ( I have a slow PII 350 ) so even a
> > speedup of compilation is welcome. Here my proposal.
> > There are files in samba that are compiled two times, one time as
> > obj, the second one as PIC code.
> > What about to change the makefile to do the following steps:
> > 1. Compile with -E -oname.i to create a precompiled file
> > 2. compile this precompiled file as .o and .po
> > The speedup while testing with reply.c is 5 %, but maybe it's worth the
> > Bye
> > Andreas
More information about the samba-technical