comp.lang.ada
 help / color / mirror / Atom feed
From: Dirk Heinrichs <dirk.heinrichs@altum.de>
Subject: Re: Time Stamping Again.
Date: Sat, 15 Sep 2012 18:12:45 +0200
Date: 2012-09-15T18:12:45+02:00	[thread overview]
Message-ID: <k329dt$km9$1@online.de> (raw)
In-Reply-To: 1dc13f16-a869-451d-9027-cf78c162998f@googlegroups.com

Austin Obyrne wrote:

> To me this is more a passing curio that seems to be going unnoticed by
> many users of language compilers.
> 
> It has been put there for a purpose no doubt and I speculate on at least
> one good use to which it may be put !

It's not really going unnoticed. It is a standard feature of any C/C++ 
compiler provided via the __TIME__ and __DATE__ macros. But in most cases, 
it is considered harmful. Let's think about software development in larger 
teams. Let's also assume that it is vital for fixing bugs to be able to 
exactly and verifiably reproduce past builds.

So you do a release build and create checksums of your .o files. When you 
need to reproduce that builds a year or two later, you can again create 
checksums and check them against the original ones to make sure you've built 
exactly what the customer has.

Now, when above macros have been used to record compilation time and date in 
your .o files, you'll always have a checksum mismatch and you can never be 
sure that you've built again what has been built before.

So checksums are, as others have already pointed out, the far better 
alternative, because a checksum always stays the same for the same 
compilation, but a timestamp does not.

Bye...

	Dirk
-- 
Dirk Heinrichs <dirk.heinrichs@altum.de>
Tel: +49 (0)2471 209385 | Mobil: +49 (0)176 34473913
GPG Public Key C2E467BB | Jabber: dirk.heinrichs@altum.de




      reply	other threads:[~2012-09-21  2:50 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-14  8:39 Time Stamping Again Austin Obyrne
2012-09-14 18:58 ` Simon Wright
2012-09-14 20:11   ` Austin Obyrne
2012-09-14 21:10     ` björn lundin
2012-09-15  7:25       ` Austin Obyrne
2012-09-15 16:15         ` Dirk Heinrichs
2012-09-15 17:25           ` Austin Obyrne
2012-09-14 21:09   ` Austin Obyrne
2012-09-15 10:15     ` Pascal Obry
2012-09-15 11:38       ` Austin Obyrne
2012-09-15 16:12         ` Dirk Heinrichs [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox