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
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
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 whenever I try
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
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 __DATE__ at
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
[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
const
[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
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$;
And
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 at
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 version.c
11 matches
Mail list logo