Section 1: General Information
25
TI
-
89 / TI
-
92 Plus Sierra C Assembler Reference Manual Not for Distribution
Beta Version February 2, 2001
1.4.8.4. Symbol Value Field
The interpretation of the value of a symbol is a function of the symbol's storage
class. Table 1.19 summarizes the relationship between storage class and value.
Storage Class Meaning of Value
C_AUTO Stack offset in bytes
C_EXT Relocatable address
C_STAT Relocatable address
C_REG Register number
C_LABEL Relocatable address
C_MOS Offset in bytes
C_ARG Stack offset in bytes
C_STRTAG 0
C_MOU 0
C_UNTAG 0
C_TPDEF 0
C_ENTAG 0
C_MOE Enumeration value
C_REGPARM Register number
C_FIELD Bit displacement
C_BLOCK Relocatable address
C_FCN Relocatable address
C_EOS Size
C_FILE (see text below)
C_ALIAS Tag index
C_HIDDEN Relocatable address
Table 1.19: Storage Class and Value
If a symbol has storage class C_FILE, the value of the symbol is the symbol
table entry index of the next .file symbol. The .file entries form a one-way linked
list within the symbol table. The value of the last .file symbol table entry is the
index of the first global symbol.
Relocatable symbols have a value that is equal to the virtual address of the
symbol. When a section is relocated by the linker, the values of the section's
relocatable symbols change.