Assembler User GuidePreface Overview of the Assembler About the ARM Compiler toolchain assemblers Key features of the assembler How the assembler works Directives that can be omitted in pass 2 of the as Overview of the ARM Architecture Structure of Assembly Language Modules Writing ARM Assembly Language Condition Codes Using the Assembler Symbols, Literals, Expressions, and Operators VFP Programming Assembler Command-line Options ARM and Thumb Instructions VFP Instructions Directives Reference Via File Syntax
Directives that can be omitted in pass 2 of the assembler
1.4 Directives that can be omitted in pass 2 of the assembler
Most directives must appear in both passes of the assembly process. You can omit some directives from the second pass over the source code by the assembler, but doing this is strongly discouraged.
Directives that can be omitted from pass 2 are:
NoteMacros that appear only in pass 1 and not in pass 2 must contain only these directives.
ASSERT directive appears in pass 1 only
The code in the following example assembles without error although the
AREA ||.text||,CODE x EQU 42 IF :LNOT: :DEF: sym ASSERT x == 42 ENDIF sym EQU 1 END
Use of ELSE and ELIF directives
Directives that appear in pass 2 but do not appear in pass 1 cause an assembly error. However, this does not cause an assembly error when using the
AREA ||.text||,CODE x EQU 42 IF :DEF: sym ELSE ASSERT x == 42 ENDIF sym EQU 1 END
of your data.