small (very ) compilation speedup
Andreas Moroder
claudiamoroder at st-ulrich.suedtirol.net
Fri Feb 22 07:34:02 GMT 2002
Hello John,
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
proto.h.
Bye
Andreas
-----Ursprüngliche Nachricht-----
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
platforms.
>
> 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.
>
>
> -John
> 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
small
> > speedup of compilation is welcome. Here my proposal.
> >
> > There are files in samba that are compiled two times, one time as
standard
> > 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
effort
> >
> > Bye
> >
> > Andreas
> >
> >
>
>
>
More information about the samba-technical
mailing list