Section 2: Compiler
101
TI
-
89 / TI
-
92 Plus Sierra C Assembler Reference Manual
Not for Distribution
Beta Version February 2, 2001
For example, the following two source lines are equivalent:
int a??(10??) = ??<1, 2, 3??>;
int a[10] = {1, 2, 3};
2.16.10. Comment
Delimiters
In addition to the standard ANSI C comment delimiters slash-asterisk ( /* ) and
asterisk-slash ( */ ), the C++ style comment delimiter slash-slash ( // ) is
supported by the compiler. Everything from the // to the end of the current line is
recognized as a comment. Note, however, that the use of the // comment
delimiter is not recommended since the resulting code will be nonportable.
2.16.11.
Predefined Macro Names
The following names are predefined by the compiler:
_ _ DATE_ _
The date that the source file was compiled given as a string literal of
the form "
Mmm dd yyyy " , where the first character of dd is a space
if the value is less than 10.
_ _ FILE_ _
The presumed name of the source file given as a string literal
(e.g., "file_name").
_ _ FLOAT_ _
Not supported by Texas Instruments, however, _ _ FLOAT_ _ is
recognized as a reserved name by the compiler.
_ _ INT_ _
A macro that expands to 16 or 32 to indicate whether the compiler is
interpreting objects of type int as 16 or 32 bits. The macro expands
to 16 only when the
-XI
command line flag is specified.
_ _ LINE_ _
The line number of the current source line given as a decimal
constant.
_ _ PCREL_ _
A macro that expands to 0 if position-independent code is not being
generated and 1 if position-independent code is being generated, as
specified by the
-Xp
command line flag.
_ _ TIME_ _
The time that the source file was compiled given as a string literal of
the form "
hh:mm:ss " .
_ _ SIERRA_ _
A macro that expands to identify the version number of the compiler.
These macro names can be neither defined nor undefined with the #define or
#undef preprocessing directives.
The following example illustrates the use of predefined macros:
printf(_ _ FILE_ _ ": compiled on "_ _ DATE_ _ " at "_ _ TIME_ _ "\n");
/* Results After Preprocessing and String Concatenation */
printf("test.c: compiled on Aug 29 1992 at 17:35:23\n");