avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Code version timestamp


From: Dave Hansen
Subject: Re: [avr-gcc-list] Code version timestamp
Date: Wed, 14 Sep 2005 08:54:57 -0400

From: address@hidden (Joerg Wunsch)

address@hidden wrote:

> I would like to display a "code version" (date/time or incremental
> number) during init on an LCD display.

If you're using CVS, you can get the date of the last checkin of
a particular module by

const char foo[] = "$Date$";

And whether you're using CVS or not, you should be able to do something like

const char foo_2[] PROGMEM = "Compiled on " __DATE__;

to get the date the file was actually compiled. Won't tell you (by itself) which version of the file was compiled, though...

Regards,






reply via email to

[Prev in Thread] Current Thread [Next in Thread]