Muli Ben-Yehuda <[EMAIL PROTECTED]> writes:

> On Fri, Sep 27, 2002 at 07:42:46PM +0300, Nadav Har'El wrote:
> 
> > You guys got me curious. What is that ccache? What does it cache? Is it
> > free software?
> 
> compiler cache. It caches intermediate object files, so that they
> don't need to be recompiled if you do the equivalent of 'make mrproper
> && make' while only changing one file. 

This seems to me somehow slippery - it tries to think for the
developer. If I do make clean|mrproper|dist etc I usually *want* to
recompile everything. It shouldn't say, in effect, "No, surely you
didn't mean that".

The above does not mean that I am arguing that it is not a useful
tool. See also remarks below.

> 
> http://ccache.samba.org/
> 
> It's GPL'd, and as I said, I have never seen it miscompile. Also,
> check out distcc, http://distcc.samba.org/. Work to integrate distcc
> and ccache is underway, AFAIK. 

I have never used it (ccache that is , I know nothing at all about
distcc), so I am not really qualified to discuss it (I think I have a
general understanding of how it works though), but I am a bit
concerned about the possibility that it may thwart make's dependency
tracking in some way when included files are deeply nested, some files
are generated, and yet others are not in C (and I've been in
situations like this quite often in my previous
incarn^H^H^H^H^H^Hjobs). Basically, it competes with make for
dependency tracking. It seems to try to do it in a smart way, but
having two tools trying to outsmart each other seeds doubt in my mind.
This doubt may have no foundation whatsoever, just unsubstantiated gut
feeling.

Also, how good is it for things other than kernel compilation? In very
large projects (and for small ones it is not worth the trouble, I
guess) it is often the case that the bulk of the build time is taken
by preprocessor and linker, not the compilation. It is my
understanding that ccache does not affect either preprocessing or
linking, only compilation of preprocessed files.

Can someone with experience with ccache comment on the above? I will be
grateful.

-- 
Oleg Goldshmidt | [EMAIL PROTECTED] 
=================================================================
"... Of theoretical physics and programming, programming embodied 
the greater intellectual challenge." [E.W.Dijkstra, 1930 - 2002.]

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to