HP3000-L Archives

September 2001, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Lars Appel <[log in to unmask]>
Reply To:
Lars Appel <[log in to unmask]>
Date:
Fri, 21 Sep 2001 19:02:29 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (24 lines)
>>SOM #1
>>@(#) HP30315    A.05.10    95/02/08 NRT0 Startup routine
>>@(#) HP30315    A.06.01    97/04/16 HP Link Editor/iX
>
>We use this to our advantage by using the appropriate $version
>compiler directive in respective compilers to generate a version
>string that is viewable with 'version'. In our case the module
>list(s) are not usually > 20 as all of our support routines are
>found in XL's.

While on the subject of $VERSION compiler directives... When using
the GNU gcc compiler, you won't have that luxury. However, you can
use a related trick by placing static string declarations into the
source code that use a character sequence like "$Id: blah blah $".

The resulting strings end up inside the object code and can then be
viewed with the /bin/ident utility that comes with the Posix Shell.
I used this approach with the Samba 2.0.10/iX programs, for example.

Lars.

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2