Symbols And Functions; Symbol Table Entries; Table 1.16: Symbol Table Entry - Texas Instruments TI-89 Software Manual

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

Advertisement

Section 1: General Information
1.4.7.3.

Symbols and Functions

For each function, a special symbol .bf is put between the function name and the
first local symbol of the function name in the symbol table. Correspondingly, a
special symbol .ef is put immediately after the last symbol of the function in the
symbol table. Associated with the .bf and .ef symbols (as defined by their
auxiliary symbol table entries) are the absolute line numbers of the function's
open brace ' { ' and close brace ' } ', respectively. The example in Table 1.15 (in
addition to showing nested inner blocks) shows a pair of C language functions
and the associated symbol table.
1.4.8.

Symbol Table Entries

All symbols, regardless of their type and storage class, use the same symbol
table format. Every symbol table entry occupies 18 bytes. Table 1.16 describes
the fields within a symbol table entry. It should be noted that the indices for
symbol table entries begin with 0 (not 1). Also, auxiliary entries count as symbol
entries for purposes of indexing into the symbol table. Defined in file_fmt.txt are
SYM_ENT and SYM_ENT_SIZE, the typedefs for the symbol table entry
structure and symbol table entry size, respectively.
Bytes Declaration
0-7
0-3
4-7
8-11
12-13
14-15
16
17
TI-89 / TI-92 Plus Sierra C Assembler Reference Manual
Name
char
sym_name
unsigned long
sym_zeroes
unsigned long
sym_offset
unsigned long
sym_value
unsigned short
sym_sec_nbr
unsigned short
sym_type
char
sym_sclass
char
sym_nbr_aux

Table 1.16: Symbol Table Entry

Description
8-character null padded symbol name
Zero in this field indicates the name is in the
string table
Offset of the name in the string table
Symbol value (storage class dependent)
Section number of symbol
Basic and derived type information
Storage class of symbol
Number of auxiliary entries
Not for Distribution
21
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