Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ccache

Status
Not open for further replies.

SmileeTiger

Programmer
Mar 13, 2000
200
US
I am working on a fairly large project that takes 5 or so minutes for a complete compile and have been experimenting with using <a href=" in order to speed up the build process.

I know however, that there is no such thing as a free lunch and that there must be some sort of drawback to using ccache. Does anyone know of the pros and cons of using compiler caching?
 
Hi,
Why do you think 5 minutes is a long time for compiles? My project takes several hours to compile.

As for making the compile time shorter, stop changing header files. Once your project is at an implementation point your design should be to a point you don't have to change your header files ( once they are coded ).

if you are changing the header files ( because they contain Inline function or macros ) maybe consider moving those out of the header files to implementation modules until development is done so again you are not changing header files when you need to change the code.


If you don't change your header files, then you only need to recompile the C++ modules that actually changed and RE LINK your application.

Now this assuming you have more than 1 C++ file in your project. If not maybe you should think about modularizing your project again with Header files used for Module communication.

Maybe create a Library of routines which don't change very often so you only have to recompile the stuff you change.

----
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top