Hi,
Is there a way to insert date and time in an assembly code (equivalent to __DATE__ and __TIME__ in C).
Woul like to have something like:
.global _aDate .global _aTime .data _aDate: .long __DATE__ ; assembler MACRO_aTime: .long __TIME__ ; assembler MACRO .end
Thanks,
S
/* h file */ #ifndef _LINKING_DAY_H #define _LINKING_DAY_H #pragma CONST_SEG MY_DATE extern const char LinkingDay[]; extern const char LinkingTime[]; #pragma CONST_SEG DEFAULT #endif /* _LINKING_DAY_H */
/* c file */ #include < time.h> #include "LinkingDay.h" #pragma CONST_SEG MY_DATE const char LinkingDay[] = __DATE__; const char LinkingTime[] = __TIME__; #pragma CONST_SEG DEFAULT
; asm file xref LinkingDay xref LinkingTime
Warning : illegal #pragmadate&Time.h line 20 #pragma CONST_SEG MY_DATE
DATE .long _LinkingDayTIME: .long _LinkingTime