Section 3: Assembler
205
TI
-
89 / TI
-
92 Plus Sierra C Assembler Reference Manual
Not for Distribution
Beta Version February 2, 2001
.type — Set Type Attribute
Syntax
.type
type
Description
type
Specifies the type of the current symbol. It is an absolute
expression that cannot contain any forward, external, or undefined
references.
The .type directive sets the type attribute of the symbol referenced by the current
attribute block (see .def directive). For a discussion of fundamental and derived
types, see section 1.4.8.7 Type Entry. This directive can appear at most once
per symbol attribute block.
The .type directive can also be used in conjunction with the
-L
command line
flag to provide type information for symbols. When the
-L
command line flag is
used, this directive does not have to appear within a symbol attribute block; the
type it specifies is associated with the most recently defined label. Function types
can only be attributed to labels defined in text-type sections.
Example
x:
.type 0x24
; x is a function that returns an int