Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Why doesn't (open source) compilers contain builtin funtionality for (shared) caching and reuse-fetching (using SHA1-hash of compiler-version, build-flags, target-platform and inputs) of executable output objects (ELF or COFF) similar to what ccache does and scons?

Many large software projects would benefit enormously in required build-disk-space and -time if this was present in, say GCC.

share|improve this question
Because that's the job of a build system, not the job of a batch compiler? – delnan Oct 2 '12 at 15:04
Take a look add Ada and gnatmake and you'll understand why this is important and why most build tools of today create unnecessary burdens for the developer when dealing with dependency checking. – Nordlöw Oct 3 '12 at 9:06
Recompiling dependencies but nothing else is a nontrivial problem with some languages, yes, but I don't see anything in your proposal addressing that. – delnan Oct 3 '12 at 11:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.