String Table; A.7.2 Symbol Name Format - Texas Instruments TMS320C54x User Manual

Digital signal processors
Hide thumbs Also See for TMS320C54x:
Table of Contents

Advertisement

Symbol Table Structure and Content

A.7.2 Symbol Name Format

A.7.3 String Table Structure
Figure A–9. String Table
A-18
The first eight bytes of a symbol table entry (bytes 0–7) indicate a symbol's
name:
-
If the symbol name is eight characters or less, this field has type character.
The name is padded with nulls (if necessary) and stored in bytes 0–7.
-
If the symbol name is greater than 8 characters, this field is treated as two
long integers. The entire symbol name is stored in the string table. Bytes
0–3 contain 0, and bytes 4–7 are an offset into the string table.
Symbol names that are longer than eight characters are stored in the string
table. The field in the symbol table entry that would normally contain the sym-
bol's name contains, instead, a pointer to the symbol's name in the string table.
Names are stored contiguously in the string table, delimited by a null byte. The
first four bytes of the string table contain the size of the string table in bytes;
thus, offsets into the string table are greater than or equal to four.
Figure A–9 is a string table that contains two symbol names, Adaptive-Filter
and Fourier-Transform. The index in the string table is 4 for Adaptive-Filter and
20 for Fourier-Transform.
38
'A'
'd'
't'
'i'
'-'
'F'
't'
'e'
'F'
'o'
'i'
'e'
'T'
'r'
's'
'f'
'm'
'\0'
'a'
'p'
'v'
'e'
'i'
'l'
'r'
'\0'
'u'
'r'
'r'
'-'
'a'
'n'
'o'
'r'

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TMS320C54x and is the answer not in the manual?

Table of Contents