public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: embedded version numbers
@ 2001-01-22 15:05 Mike Stump
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Stump @ 2001-01-22 15:05 UTC (permalink / raw)
  To: bcomsa; +Cc: gcc

> From: "Brent Comsa" <bcomsa@eng.mcd.mot.com>
> To: <gcc@gcc.gnu.org>
> Date: Mon, 22 Jan 2001 15:26:34 -0700

> I have been searching the onlinedocs Index at gcc.gnu.org

The online docs do not describe all of the features that are in the
compiler.  Some features are described in the relevant standards:

  16.8  Predefined macro names                          [cpp.predefined]

1 The following macro names shall be defined by the implementation:

  __LINE__ The line  number  of  the  current  source  line  (a  decimal
    constant).

  __FILE__ The presumed name of the  source  file  (a  character  string
    literal).

  __DATE__ The date of translation  of  the  source  file  (a  character
    string  literal  of  the  form "Mmm dd yyyy", where the names of the
    months are the same as those generated by the  asctime function, and
    the first character of  dd is a space character if the value is less
    than  10).   If  the  date  of  translation  is  not  available,  an  |
    implementation-defined valid date is supplied.

  __TIME__ The time of translation  of  the  source  file  (a  character
    string  literal  of  the form "hh:mm:ss" as in the time generated by
    the    asctime  function).   If  the  time  of  translation  is  not
    available, an implementation-defined valid time is supplied.          |

Please refer to a good book on C/C++ for a description of these
features.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* embedded version numbers
@ 2001-01-22 14:27 Brent Comsa
  0 siblings, 0 replies; 2+ messages in thread
From: Brent Comsa @ 2001-01-22 14:27 UTC (permalink / raw)
  To: gcc

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 488 bytes --]

Hello,
I have been 
searching the onlinedocs Index at gcc.gnu.org and I cannot seem to find a way to 
embed a "version" into an object file. 
I was looking for 
some keyword like "__DATE__" to embed a date in the object file, which we could 
then use octl dump to identify the date ("version") of the object 
file.
But using a date as 
a version number is not accurate if new objects are created repeatedly on the 
same day.
Are there any 
compiler options available to me?
 
Bc

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-01-22 15:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-22 15:05 embedded version numbers Mike Stump
  -- strict thread matches above, loose matches on Subject: below --
2001-01-22 14:27 Brent Comsa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).