Directives Reference
7-4 Copyright © 2000, 20 01 ARM Limited. All rights reserved. ARM DUI 0068B
7.2.1 GBLA, GBLL, and GBLS
The
GBLA
directive declares a global arithmetic variable, and initializes its value to 0.
The
GBLL
directive declares a global logical variable, and initializes its value to
{FALSE}
.
The
GBLS
directive declares a global string variable and initializes its value to a null
string,
""
.
Syntax
<gblx> variable
where:
<gblx>
is one of
GBLA
,
GBLL
, or
GBLS
.
variable
is the name of the variable.
variable
must be unique amongst symbols
within a source file .
Usage
Using one of these directives for a variable that is already defined re-initializes the
variable to the s ame values given ab ove.
The scope of the variable is limited to the source file that contains it.
Set the value of the variable with a
SETA
,
SETL
, or
SETS
directive (see SETA, SETL, and
SETS on page7-7).
See LCLA, LCLL, and LCLS on page 7-6 for information on declaring local variables.
Global variables can also be set with the
-predefine
assembler command-line option.
See Command syntax on page3-2 for more information.