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

2005-09-17 Thread Ben L. Titzer
For my project, I made a "commit.bash" shell script that I run when I want to commit code to CVS when it is working. It automatically recompiles the whole code base (to guarantee there are no compile errors), runs a suite of automated test cases, and then increments a "commit number" in one

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

2005-09-17 Thread Herbert Demmel
On 14 Sep 2005, you wrote in ml.avr-gcc: > Dear All, > > I would like to display a "code version" (date/time or incremental > number) during init on an LCD display. > Does anybody know if there is any information in the executable (ROM > file) that I can use at runtime (updated by the linker for

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

2005-09-17 Thread Bruce D. Lightner
Anton Erasmus wrote: Would love to use these Macros, but whenever I try to use __DATA__ for example, the compiler complains that : error: `__DATA__' undeclared (first use in this function) Are these macros been introduced so recently in gcc that my sliiighlty old 3.4.3 version doesn't su

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

2005-09-16 Thread Anton Erasmus
On 16 Sep 2005 at 18:06, Vincent Trouilliez wrote: > > Look at the __DATE__ and __TIME__ predefined macros. Since they are > > already string constants, you can use the compiler to concatenate > > them with the string you want to display, such as: > > > > char *version = > > "Compiled on " __

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

2005-09-16 Thread John Altstadt
Vincent Trouilliez wrote: Look at the __DATE__ and __TIME__ predefined macros. Since they are already string constants, you can use the compiler to concatenate them with the string you want to display, such as: char *version = "Compiled on " __DATE__ " at " __TIME__; Would love to use these

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

2005-09-16 Thread Vincent Trouilliez
> Look at the __DATE__ and __TIME__ predefined macros. Since they are > already string constants, you can use the compiler to concatenate them > with the string you want to display, such as: > > char *version = > "Compiled on " __DATE__ " at " __TIME__; Would love to use these Macros, but whene

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

2005-09-14 Thread Dave Hansen
From: "Anton Erasmus" <[EMAIL PROTECTED]> On 14 Sep 2005 at 6:21, John Altstadt wrote: [...] > %.elf: $(OBJ) > @echo > @echo $(MSG_LINKING) $@ > $(CC) $(ALL_CFLAGS) $^ --output $@ $(LDFLAGS) > rm version.o There is a better way to force the recompile of ver

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

2005-09-14 Thread Anton Erasmus
On 14 Sep 2005 at 6:21, John Altstadt wrote: > [EMAIL PROTECTED] wrote: > > Dear All, > > > > I would like to display a "code version" (date/time or incremental > > number) during init on an LCD display. Does anybody know if there is > > any information in the executable (ROM file) that I can use

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

2005-09-14 Thread John Altstadt
[EMAIL PROTECTED] wrote: Dear All, I would like to display a "code version" (date/time or incremental number) during init on an LCD display. Does anybody know if there is any information in the executable (ROM file) that I can use at runtime (updated by the linker for example) ? If no, does any

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

2005-09-14 Thread Dave Hansen
From: [EMAIL PROTECTED] (Joerg Wunsch) [EMAIL PROTECTED] 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$";

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

2005-09-14 Thread epasquier
I am in tunning phase so I am looking for something more "dynamic" than CVS, i.e. the compilation/link time ... Quoting Joerg Wunsch <[EMAIL PROTECTED]>: > [EMAIL PROTECTED] wrote: > > > I would like to display a "code version" (date/time or incremental > > number) during init on an LCD display.

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

2005-09-14 Thread Joerg Wunsch
[EMAIL PROTECTED] wrote: > I am in tunning phase so I am looking for something more "dynamic" > than CVS, i.e. the compilation/link time ... Well, it's up to you to run a cvs commit -f whenever you need. ;-) Anyone, someone pointed out to me offline that of course, the compiler supports the ANSI

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

2005-09-14 Thread Joerg Wunsch
[EMAIL PROTECTED] 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$"; CVS will replace that by something like co

[avr-gcc-list] Code version timestamp

2005-09-14 Thread epasquier
Dear All, I would like to display a "code version" (date/time or incremental number) during init on an LCD display. Does anybody know if there is any information in the executable (ROM file) that I can use at runtime (updated by the linker for example) ? If no, does anybody know how to implement