On Fri, 10 Oct 2003, Angus Leeming wrote:

> All object files up to date, compiled with CXXFLAGS='-g -O -W -Wall'.
> No executables.
> $ time make
> real    4m20.096s
> 
> Run the script below, named run_objdump.sh:
> $ time find . -name '*.o' | xargs run_objdump.sh
> 
> real    0m17.685s
> 
> Now regenerate the executables
> $ time make
> real    3m5.312s
> 
> So, it knocks 1m20 of the link times for the two executables at the 
> expense of 20% greater disk usage. size stats are unchanged.

So the net gain is 1 minute, i.e. roughly a 25% improvement...
I'd like to have this in the makefile.

Speaking about compilation times... long ago Borland's C++ compiler had 
something they called 'precompiled header-files' (or something like that), 
where the sort of had a cache of parsed header files. Is this something 
that could be used for LyX?

/Christian

-- 
Christian Ridderström                           http://www.md.kth.se/~chr


Reply via email to