28
Section 1: General Information
TI-89 / TI-92 Plus Sierra C Assembler Reference Manual Not for Distribution
Beta Version February 2, 2001
1.4.8.7. Type
Entry
The type field in the symbol table entry contains information on the basic and
derived type for the symbol. The type information is generated for a symbol only
if the files are generated with symbolic debugging in mind. Type information is
generated when the compiler is invoked with the
-q
or
-q1
flag and/or the
assembler is invoked with the
-L
flag and .type directives are inserted into the
assembly language file. Each symbol has one basic or fundamental type and
from zero to six derived types. The following is the format of the 16-bit type entry:
d6 d5 d4 d3 d2 d1 type
Bits 0 through 3, identified as type, indicate one of the fundamental types listed
in Table 1.22. Bits 4 through 15 are arranged as six 2-bit fields identified as d1
through d6. The fields d1 through d6 represent levels of the derived types listed
in Table 1.23.
Mnemonic Value Type
T_NULL 0 Type not assigned
T_LDOUBLE 1 Long double
T_CHAR 2 Character
T_SHORT 3 Short
T_INT 4 Integer
T_LONG 5 Long integer
T_FLOAT 6 Float
T_DOUBLE 7 Double
T_STRUCT 8 Structure
T_UNION 9 Union
T_ENUM 10 Enumeration
T_MOE 11 Member of enumeration
T_UCHAT 12 Unsigned character
T_USHORT 13 Unsigned short
T_UINT 14 Unsigned integer
T_ULONG 15 Unsigned long integer
Table 1.22: Fundamental Types