small (very ) compilation speedup

Richard Sharpe sharpe at ns.aus.com
Fri Feb 22 17:19:01 GMT 2002


Actually, why don't we just create PIC objects when we can?

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
>
>

-- 
Richard Sharpe, rsharpe at ns.aus.com, rsharpe at samba.org, sharpe at ethereal.com
www.samba.org, www.ethereal.com, SAMS Teach Yourself Samba 
in 24 Hours, Special Edition, Using Samba







More information about the samba-technical mailing list