This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Using ccache to improve compilation speed


On Mon, May 06, 2002 at 08:38:03PM -0400, Craig Rodrigues wrote:
> Hi,
> 
> Has anybody looked at ccache, written by Andrew Tridgell of the
> Samba project? ( http://ccache.samba.org/ )
> 
> ccache claims to improve compile-time performance of C/C++
> code by caching preprocessor output.
> 
> Could this type of functionality be integrated somehow in
> gcc?

I thought about this too.
The problem of tridge's ccache with integrated preprocessor is that
it kills the advantages of integrated preprocessor, ie. it does effectively
what -save-temps does know, preprocesses into file, then does its own magic
(checksums it) and then conditionally compiles that.
If ccache was integrated, the checksumming (and canonicalizing of .i/.ii
output) could be done as filter between cpplib and the compiler,
unfortunately if the compilation should be conditional, then it would need
to preprocess everything first (while checksumming it), then in another pass
throw the preprocessed tokens into parser and further into
optimizer.

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]