* Erik Hofman -- Thursday 10 July 2003 13:39:
> Melchior FRANZ wrote:
> > * Martin Spott -- Thursday 10 July 2003 11:49:
> > 
> >>It takes about 6 hours to build on my machine 
> 
> > 2 minutes, 7 seconds   ->  http://ccache.samba.org/
> 
> Does this work well for active development?
> I daily change a lot of files for FlightGear/SimGear and would assume 
> this won't be of much help then. Or am I wrong about this assumption?

Files that changed do of course have to be recompiled, and
ccache knows that. It takes every C(++) source file, lets the
preprocessor expand all macros and include all headers, then
removes all comments and insignificant spaces/newlines, builds
a checksum and stores the module. It always takes the stored
object file, =unless= any code changed. So, where does it save
time?
   It doesn't have to recompile files, only because configure.ac
or Makefile{,am,in} changed. And it does not compile them, only
because one included header file was touched or changed (unless
some macro thereof changed, that is actually used). Also, it
doesn't compile source files where you changed some comment
or added an empty line etc.
   Drawback: all the cached object files have to stored
(~/.ccache/) and this directory can become quite big. I wouldn't
use ccache on my KDE source directories. But ccache manages
all the fgfs related projects (plib,sg,fgfs,fgsd,atlas).

m.

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to