Section 3: Assembler
175
TI
-
89 / TI
-
92 Plus Sierra C Assembler Reference Manual
Not for Distribution
Beta Version February 2, 2001
.dim — Set Array Dimension Attribute
Syntax
.dim
dim
[,
dim
[,
dim
[,
dim
]]]
Description
dim
Specifies an array dimension of the current symbol. It is an
absolute expression that cannot contain any forward, external, or
undefined references. Up to four dimensions can be specified.
The
.dim
directive sets the dimension attribute of the symbol referenced by the
current attribute block (see
.def
directive). The dimension attribute is specified for
array types (see sections
1.4.8.7 Type Entry
and
1.4.9.6 Arrays
). This directive
can appear at most once per symbol attribute block.
The
.dim
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 buf
.val buf
.dim 16,4 ; buf is a two-dim array, int buf[16][4]
.scl 2
.type 0xf4
.line 25
.size 256
.endef