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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,91d0d8cd28bbb477 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!p77g2000hsh.googlegroups.com!not-for-mail From: Lucretia Newsgroups: comp.lang.ada Subject: Re: Implementing an Ada compiler and libraries. Date: 10 May 2007 10:42:50 -0700 Organization: http://groups.google.com Message-ID: <1178818970.672252.279180@p77g2000hsh.googlegroups.com> References: <1178721451.073700.10730@y80g2000hsf.googlegroups.com> <464239b2_4@news.bluewin.ch> <20070510173440.6b5954ac@cube.tz.axivion.com> NNTP-Posting-Host: 62.56.81.180 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1178818971 9891 127.0.0.1 (10 May 2007 17:42:51 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 10 May 2007 17:42:51 +0000 (UTC) In-Reply-To: <20070510173440.6b5954ac@cube.tz.axivion.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.10 (X11; Linux i686; U; en),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: p77g2000hsh.googlegroups.com; posting-host=62.56.81.180; posting-account=G-J9fgwAAADgpzBiEyy5tO4f8MX5fbpw Xref: g2news1.google.com comp.lang.ada:15729 Date: 2007-05-10T10:42:50-07:00 List-Id: On May 10, 4:34 pm, Stefan Bellon wrote: > Gautier wrote: > > - time stamps to check need of recompilations > > I've always wondered about the focussing on time stamps. I think the way > to do it would be to calculate a hash sum (md5, sha1, ...) on the token > stream without comments. This way you wouldn't have to recompile if you > do layout and commentary changes, and even if you touch the file, you > don't inadvertently trigger a recompilation. > > In fact, this is the idea of the "compilercache" project for C and C++: > It intercepts calls to gcc/g++, builds a hash value on the > concatenation of the command line (minus a few switches that do not > influence code generation) and the preprocessed source and then stores > the resulting object file in the cache with the name of the hash value. > If the same hash value is to be compiled again, it is fetched from the > cache and a lot of compilation time is saved. Another really good idea ;D Thanks, Luke.