36
Section 1: General Information
TI-89 / TI-92 Plus Sierra C Assembler Reference Manual Not for Distribution
Beta Version February 2, 2001
1.4.10. String Table
Symbol table names longer than eight characters are stored contiguously in the
string table with each symbol name terminated with a null character. The string
table is located immediately after the symbol table and it can be located by
adding the size of the symbol table to the base offset of the symbol table. The
first four bytes of the string table contain the size of the string table in bytes; thus
the first string table symbol will be at offset four.
For example, given a file that includes two symbols with names longer than eight
characters,
this_is_a_long_name and this_is_a_still_longer_name, the string
table will appear as shown in Table 1.35.
0 0 0 52 ' t ' ' h ' ' i ' ' s ' ' _ ' ' i '
' s ' ' _ ' ' a ' ' _ ' ' l ' ' o ' ' n ' ' g ' ' _ ' ' n '
' a ' ' m ' ' e ' ' \0 ' ' t ' ' h ' ' i ' ' s ' ' _ ' ' i '
' s ' ' _ ' ' a ' ' _ ' ' s ' ' t ' ' i ' ' l ' ' l ' ' _ '
' l ' ' o ' ' n ' ' g ' ' e ' ' r ' ' _ ' ' n ' ' a ' ' m '
' e ' ' \0 '
Table 1.35: Example String Table
The string table offset of
this_is_a_long_name is 4, and the string table offset of
this_is_a_still_longer_name is 24.