Comment Delimiters; Predefined Macro Names - Texas Instruments TI-89 Software Manual

Sierra c assembler
Hide thumbs Also See for TI-89:
Table of Contents

Advertisement

Section 2: Compiler
For example, the following two source lines are equivalent:
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_ _
_ _ FILE_ _
_ _ FLOAT_ _
_ _ INT_ _
_ _ LINE_ _
_ _ PCREL_ _
_ _ TIME_ _
_ _ SIERRA_ _
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:
TI-89 / TI-92 Plus Sierra C Assembler Reference Manual
int a??(10??) = ??<1, 2, 3??>;
int a[10] = {1, 2, 3};
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.
The presumed name of the source file given as a string literal
(e.g., "file_name").
Not supported by Texas Instruments, however, _ _ FLOAT_ _ is
recognized as a reserved name by the compiler.
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
The line number of the current source line given as a decimal
constant.
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
The time that the source file was compiled given as a string literal of
the form " hh:mm:ss ".
A macro that expands to identify the version number of the compiler.
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");
-XI
command line flag is specified.
command line flag.
-Xp
Not for Distribution
101
Beta Version February 2, 2001

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92 plusTi-89 plusTi-92 plus

Table of Contents