Section 3: Assembler
203
TI
-
89 / TI
-
92 Plus Sierra C Assembler Reference Manual
Not for Distribution
Beta Version February 2, 2001
.tag — Set Tag Name Attribute
Syntax
.tag
symbol
Description
symbol
Specifies the tag name with which the current symbol is
associated. It is a symbol that is defined as a structure, union, or
enumeration type.
The .tag directive sets the tag name attribute of the symbol referenced by the
current attribute block (see .def directive). For a detailed description of the tag
name attribute, see section 1.4.9 Auxiliary Table Entries. This directive can
appear at most once per symbol attribute block.
The .tag directive is typically used only for C source-level debugging; it is ignored
when assembler source-level debugging information is generated with the
-L
command line flag (see also .type directive).
Example
.def x
.val x
.scl 2
.type 8
.size 4
.tag s
; s is the tag of the structure
.endef
; of which x is a member
.text — Begin / Resume the Text-type Section .text
Syntax
.text
Description
The .text directive begins or resumes the text-type section .text. It is functionally
equivalent to .tsection .text.
The section .text contains read-only data. It is present in all object files,
regardless of whether it is specified. For more information, see section
3.3.4.1 Section Types.