Section 3: Assembler
225
TI
-
89 / TI
-
92 Plus Sierra C Assembler Reference Manual
Not for Distribution
Beta Version February 2, 2001
.dim / DIM — Set Array Dimension Attribute
Syntax
.dim
dim [, dim [, dim[, dim ]]]
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 / DIM directive sets the dimension attribute of the symbol referenced by
the current attribute block (see .def / 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 / 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 / TYPE directive).
Example
DEF buf
VAL buf
DIM 16,4
; buf is a two-dim array, int buf[16][4]
SCL 2
TYPE $F4
LINE 25
SIZE 256
ENDEF