You can use C preprocessor commands in your assembly language
source file. If you do this, you must use the
option when invoking the assembler. This causes
armcc to preprocess the file before assembling
armasm looks for the
in the same directory as the
If it does not find the binary, it expects it to be on the PATH.
armasm passes certain options to
present on the command line. These are shown in Table 25. Some of these
options are converted to the
before passing to
armcc. These are shown in Table 26.
To pass other simple compiler options, such as the preprocessor
-D, you must use the
armasm correctly interprets the preprocessed #line commands.
It can generate error messages and
using the information in the #line commands.
Example 22 shows the
commands you write to preprocess and assemble a file,
The example also passes the compiler options to define a macro called
RELEASE, and to undefine a macro called ALPHA.
If you want to use complex preprocessor options, you must
armcc to preprocess the file
armasm. Example 23 shows the commands you write to manually preprocess
and assemble a file,
source.s. In this example,
the preprocessor outputs a file called