* embedded version number
@ 2001-01-22 14:25 Brent Comsa
2001-01-23 14:13 ` Alexandre Oliva
0 siblings, 1 reply; 2+ messages in thread
From: Brent Comsa @ 2001-01-22 14:25 UTC (permalink / raw)
To: gcc-help
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 493 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
* Re: embedded version number
2001-01-22 14:25 embedded version number Brent Comsa
@ 2001-01-23 14:13 ` Alexandre Oliva
0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Oliva @ 2001-01-23 14:13 UTC (permalink / raw)
To: Brent Comsa; +Cc: gcc-help
On Jan 22, 2001, "Brent Comsa" <bcomsa@eng.mcd.mot.com> wrote:
> 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.
That's because the GCC documentation often doesn't document features
that are supposed to be part of any C compiler. The ISO C Standard
specifies __DATE__ and __TIME__. Both, taken together, should
probably be enough for what you need. If not, you may try
-D__PROCNUM__=$$ :-)
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-01-23 14:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-22 14:25 embedded version number Brent Comsa
2001-01-23 14:13 ` Alexandre Oliva
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).