6.1 armasm command-line syntax

You can use a command line to invoke armasm. You must specify an input source file and you can specify various options.

The command for invoking the assembler is:
armasm {options} inputfile
are commands that instruct the assembler how to assemble the inputfile. You can invoke armasm with any combination of options separated by spaces. You can specify values for some options. To specify a value for an option, use either ‘=’ (option=value) or a space character (option value).
is an assembly source file. It must contain UAL or pre-UAL ARM or Thumb® assembly language.


The inline and embedded assemblers are part of the C and C++ compilers and do not use any command-line syntax for invocation. However, to pass additional assembler options when the compiler invokes armasm for embedded assembly, you can use the armcc –A option.
The assembler command line is case-insensitive, except in filenames and where specified. The assembler uses the same command-line ordering rules as the compiler. This means that if the command line contains options that conflict with each other, then the last option found always takes precedence.
Related information
Order of compiler command-line options
Compiler command-line options listed by group
Non-ConfidentialPDF file icon PDF versionARM DUI0379G
Copyright © 2007, 2008, 2011, 2012, 2014, 2015 ARM. All rights reserved.