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,91d0d8cd28bbb477 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!newshub.sdsu.edu!news.albasani.net!morpheus.pingos.org!rz.uni-karlsruhe.de!news.uni-stuttgart.de!not-for-mail From: Stefan Bellon Newsgroups: comp.lang.ada Subject: Re: Implementing an Ada compiler and libraries. Date: Thu, 10 May 2007 18:43:09 +0200 Organization: Comp.Center (RUS), U of Stuttgart, FRG Message-ID: <20070510184309.35ad5e95@cube.tz.axivion.com> References: <1178721451.073700.10730@y80g2000hsf.googlegroups.com> <464239b2_4@news.bluewin.ch> <20070510173440.6b5954ac@cube.tz.axivion.com> <87wszgocrj.fsf@ludovic-brenta.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: infosun2.rus.uni-stuttgart.de 1178815350 1866 129.69.226.21 (10 May 2007 16:42:30 GMT) X-Complaints-To: news@news.uni-stuttgart.de NNTP-Posting-Date: Thu, 10 May 2007 16:42:30 +0000 (UTC) X-Newsreader: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; i486-pc-linux-gnu) X-URL: http://www.axivion.com/ Xref: g2news1.google.com comp.lang.ada:15716 Date: 2007-05-10T18:43:09+02:00 List-Id: Ludovic Brenta wrote: > Stefan Bellon writes: > > 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. > > That's what GNAT does, only it uses a simple checksum for performance > reasons. Calculating the checksum and comparing it with the one in > the library (.ali files in the case of GNAT) has to be faster than > recompiling the file. But timestamps are considered as well. If you touch a file without modifying it otherwise, it triggers a recompilation. -- Stefan Bellon