From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,206547e68a60b0e7 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!newsfeed1.ip.tiscali.net!tiscali!transit1.news.tiscali.nl!dreader2.news.tiscali.nl!not-for-mail Newsgroups: comp.lang.ada Subject: Re: How to cache output of the compiler aka ccache References: <1111085641.211767.56950@f14g2000cwb.googlegroups.com> From: Ludovic Brenta Date: Thu, 17 Mar 2005 21:04:56 +0100 Message-ID: <87zmx23uon.fsf@insalien.org> User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:l4bkG3/IofmJPUrCVJEBTBqtYEg= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Tiscali bv NNTP-Posting-Date: 17 Mar 2005 21:04:52 CET NNTP-Posting-Host: 83.134.244.177 X-Trace: 1111089892 dreader2.news.tiscali.nl 44070 83.134.244.177:34815 X-Complaints-To: abuse@tiscali.nl Xref: g2news1.google.com comp.lang.ada:9560 Date: 2005-03-17T21:04:52+01:00 List-Id: Yes, Ada defines separate compilation cleanly. C does not, and Makefiles were created to make up for it. Makefiles can become very complex in the presence of preprocessors or rules that build a program that generates code which is compiled later on (this happens e.g. in the GCC bootstrap process). It takes a lot of care to get these Makefiles right, and even then they tend to be very brittle. ccache was created to make up for *that*. The Ada model is indeed clean, simple and reliable. Sometimes, it is necessary to supplement it to provide preprocessing facilities, or to select the units to be compiled from a CM system. Simple scripts or minimalistic makefiles can do that. -- Ludovic Brenta.