You copied the Doc URL to your clipboard.

--predefine "directive"

This option instructs the assembler to pre-execute one of the SET directives. This is useful for conditional assembly.

The directive is one of the SETA, SETL, or SETS directives. You must enclose directive in quotes, for example:

armasm --predefine "VariableName SETA 20" inputfile.s

The assembler also executes a corresponding GBLL, GBLS, or GBLA directive to define the variable before setting its value.

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 directive. Alternatively, you can use --via file to include a --predefine argument. The command line interface does not alter arguments from --via files.

Was this page helpful? Yes No