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

Ashish Sharma ashishs99 at gmail.com
Mon Mar 21 18:15:33 EDT 2011


>
>
> 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


I just wrote some information on WrapITK and ccache here:
http://itk.org/Wiki/ITK_Release_4/Wrapping/WrapITK_Installation

-- Ashish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20110321/a58430d6/attachment.htm>


More information about the Insight-developers mailing list