EasyManuals Logo
Home>Texas Instruments>Calculator>TI-89

Texas Instruments TI-89 Software Guide

Texas Instruments TI-89
334 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #113 background imageLoading...
Page #113 background image
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");

Table of Contents

Other manuals for Texas Instruments TI-89

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TI-89 and is the answer not in the manual?

Texas Instruments TI-89 Specifications

General IconGeneral
Display size (HxV)100 x 160 mm
Memory type639K FLASH ROM, 188K bytes RAM
Compatible operating systemsOperating System 2.09
Battery typeAAA

Related product manuals