First, if you don't have it yet done, install ccache.

HOW IT WORKS
The basic idea is to detect when you are compiling exactly the same code a 2nd time and use the pre-
viously compiled output. You detect that it is the same code by forming a hash of:


       o      the pre-processor output from running the compiler with -E

       o      the command line options

       o      the real compilers size and modification time

       o      any stderr output generated by the compiler

These are hashed using md4 (a strong hash) and a cache file is formed based on that hash result.
When the same compilation is done a second time ccache is able to supply the correct compiler output
(including all warnings etc) from the cache.


So you get really fast recompiles *except* for classes/*.c. What I'd like to have is (based on ccache's philosophy) a cache for classes/*.dump and classes/*.c files. Currently they are recreated permanently.

NB Fink created wrong permissions for ~/.ccache/*

A:

  $ sudo chown -R user:user ~/.ccache

fixed it (if your login and group name is user ;)

leo




Reply via email to