This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: embedded version numbers
- To: bcomsa at eng dot mcd dot mot dot com
- Subject: Re: embedded version numbers
- From: Mike Stump <mrs at windriver dot com>
- Date: Mon, 22 Jan 2001 15:05:40 -0800 (PST)
- Cc: gcc at gcc dot gnu dot org
> From: "Brent Comsa" <bcomsa@eng.mcd.mot.com>
> To: <gcc@gcc.gnu.org>
> Date: Mon, 22 Jan 2001 15:26:34 -0700
> I have been searching the onlinedocs Index at gcc.gnu.org
The online docs do not describe all of the features that are in the
compiler. Some features are described in the relevant standards:
16.8 Predefined macro names [cpp.predefined]
1 The following macro names shall be defined by the implementation:
__LINE__ The line number of the current source line (a decimal
constant).
__FILE__ The presumed name of the source file (a character string
literal).
__DATE__ The date of translation of the source file (a character
string literal of the form "Mmm dd yyyy", where the names of the
months are the same as those generated by the asctime function, and
the first character of dd is a space character if the value is less
than 10). If the date of translation is not available, an |
implementation-defined valid date is supplied.
__TIME__ The time of translation of the source file (a character
string literal of the form "hh:mm:ss" as in the time generated by
the asctime function). If the time of translation is not
available, an implementation-defined valid time is supplied. |
Please refer to a good book on C/C++ for a description of these
features.