On 2007-12-07 at 23:24:19, Mahmood NT wrote: > >If your library makes it so that you can't reuse any of the already compiled > >objects, then ccache is unlikely to make things faster for you. > > Excuse me but I did not understand. What is the mechanism of ccache?
Simply put, when you compile a .c file, it produces a .o file. ccache keeps track of the checksum on the .c file and then stores the corresponding .o. The next time you compile that .c file, if it hasn't changed, it will have the same checksum and ccache will already have the .o file for it so it won't have to compile it again. Now, in your case, it sounds like there will be very few .c files that do not change, so ccache will not be able to speed up the compilation by using already cached .o files. Francois