[Insight-developers] SimpleITK - Using ccache for fast recompilation

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Mon Mar 21 11:55:09 EDT 2011


Le 21 mars 11 à 16:29, Bradley Lowekamp a écrit :

> Hello,
>
> I have just been experimenting with ccache and SimpleITK. I am quite  
> impressed.
>
> CCache:
> http://ccache.samba.org/
>
> Notes for use with SimpleITK:
> http://erie.nlm.nih.gov/~blowek1/SimpleITK/Developer.html
>
> Because SimpleITK uses a bit of code generation, the standard  
> dependencies of file modified times don't work so well. When files  
> get regenerated then have to be recompiled, even though the contents  
> doesn't change. This can slow down development, especially when you  
> are trying to instantiate filters with just about every pixel type.
>
> Ccache is doing an amazing job in determining that the generated  
> code really has not changed and re-using the results of the prior  
> compilation. I am quite impressed with the results so far.
>
> Brad


ccache is used to be very effective with WrapITK also.
I find easier to just define a symlink like:

   ln -s /usr/bin/ccache /usr/local/bin/g++
   ln -s /usr/bin/ccache /usr/local/bin/gcc

but I guess it's a matter of preference :-)

Gaëtan

-- 
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66    fax: 01 34 65 29 09
http://voxel.jouy.inra.fr  http://www.itk.org
http://www.mandriva.org  http://www.bepo.fr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 203 bytes
Desc: Ceci est une signature ?lectronique PGP
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20110321/9275b127/attachment.pgp>


More information about the Insight-developers mailing list