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.0 required=5.0 tests=BAYES_00,FORGED_HOTMAIL_RCVD2, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,fef40c7c6b003852 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,CP1252 Received: by 10.224.27.14 with SMTP id g14mr2883326qac.1.1347656992978; Fri, 14 Sep 2012 14:09:52 -0700 (PDT) Received: by 10.52.23.145 with SMTP id m17mr129108vdf.0.1347656992951; Fri, 14 Sep 2012 14:09:52 -0700 (PDT) Path: da15ni55818832qab.0!nntp.google.com!v8no3347539qap.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 14 Sep 2012 14:09:52 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=31.52.181.203; posting-account=pmkN8QoAAAAtIhXRUfydb0SCISnwaeyg NNTP-Posting-Host: 31.52.181.203 References: <7c39a531-1058-42de-9e56-f03f2b9f92dc@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Time Stamping Again. From: Austin Obyrne Injection-Date: Fri, 14 Sep 2012 21:09:52 +0000 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Date: 2012-09-14T14:09:52-07:00 List-Id: On Friday, September 14, 2012 7:58:04 PM UTC+1, Simon Wright wrote: > Austin Obyrne writes: > GNAT 3.11p (981118) C= opyright 1992-1998 Free Software Foundation, Inc. > > Compiling: > c:\docum= e~1\admini~1\mydocu~1\skewli~3\skewline_batch_encryption_mark_0.adb > (sour= ce file time stamp: 2012-09-14 08:16:36) > > > > This is a copy of the time= stamp in my computer. I=92m using this older > compiler and I=92m working = in Windows XP. > > Maybe this time stamp attribute is peculiar to AdaCore T= echnologies > compilers only? > > Seems a useful function to me that should= be considered for all > versions of the compiler =96 maybe it does? =96 An= ybody. > > The drill is this, > > I go to "RUN" 0n the editor tool bar =3D>= Compile to listing on the > drop-down menu that appears. This is ertainly = present in GCC 4.7.0 & GNAT GPL 2012, I think it always has been. The comma= nd-line compiler flag is -gnatl. Just in case it is of any interest to readers, How this works. The time stamp records the time that the source code was *last modified. One can compile a program as often as you like without overwriting the time= stamp i.e. by 'ordinary' compile or by 'compile to listing' and the record= ed time stays put - even if its years later. (in that case just clicking o= n 'Build' or 'Link' alone should do in the interim - not necessary to re-co= mplie in other words). But if new sourcecode is added and compiled the new time is recorded as at = the new updated time stamp. If you want to keep the old time on record just build the program amd run i= t at any time. It doesn't do any harm to the recorded time however to re-c= ompile before running a program but it just isn't necessary to do that. =20 There is a "compile once only" school of thought in this respect by at at l= east one expert that I know - build is enough after the initial compile unl= ess new sorcecode is added. Many thanks all - adacrypt