public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Linux gcc compiler output
@ 2004-05-03 20:12 Crumrine, Ray
  2004-05-04 13:08 ` llewelly
  0 siblings, 1 reply; 2+ messages in thread
From: Crumrine, Ray @ 2004-05-03 20:12 UTC (permalink / raw)
  To: 'gcc-help@gcc.gnu.org'

I'm trying to find out where in the header of the resulting file that is
created when gcc runs is the date / time of file creation and what format.
Can anyone help? I'm assuming it's probably there in some binary format. Any
help is appreciated.

Thanks,
Ray Crumrine

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

* Re: Linux gcc compiler output
  2004-05-03 20:12 Linux gcc compiler output Crumrine, Ray
@ 2004-05-04 13:08 ` llewelly
  0 siblings, 0 replies; 2+ messages in thread
From: llewelly @ 2004-05-04 13:08 UTC (permalink / raw)
  To: Crumrine, Ray; +Cc: 'gcc-help@gcc.gnu.org'

"Crumrine, Ray" <Ray.Crumrine@Glenayre.com> writes:

> I'm trying to find out where in the header of the resulting file that is
> created when gcc runs is the date / time of file creation and what format.
> Can anyone help? I'm assuming it's probably there in some binary format. Any
> help is appreciated.

I'm not sure what you are asking. gcc does not normally put a
    timestamp in its output.

You can put code like this:

char const* cp= "Date: " __DATE__;
char const* cp2= "Time: " __TIME__;

in your program, and on most systems you can run strings on the
resulting binary, and see something like this:

$ strings a.out | grep 'Date\|Time'
Date: May  4 2004
Time: 07:04:56


If the output is an archive, and you
    have gnu binutils, you can use objdump -a to see the dates the
    individual members of the archive were added.

That's all I know about.

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

end of thread, other threads:[~2004-05-04 13:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-03 20:12 Linux gcc compiler output Crumrine, Ray
2004-05-04 13:08 ` llewelly

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).