This option instructs the assembler to pre-execute one of
one of the
You must enclose
quotes, for example:
armasm --predefine "VariableName SETA 20" inputfile.s
The assembler also executes a corresponding
GBLA directive to define the variable before setting
The variable name is case-sensitive. The variables defined using the command line are global to the assembler source files specified on the command line.
The command line interface of your system might require you
to enter special character combinations, such as
to include strings in
Alternatively, you can use
--predefine argument. The command line
interface does not alter arguments from
--predefine is not equivalent to the compiler
a global variable whereas
a macro that the C preprocessor will expand.
Although you can use predefined global variables in combination
with assembly control directives, for example
control conditional assembly, they are not intended to provide the
same functionality as the C preprocessor in the assembler. If you
need this functionality, ARM recommends you use the compiler to
pre-process your assembly code.