7.1 -Aopt

Specifies command-line options to pass to the assembler when it is invoked by the compiler to assemble either .s input files or embedded assembly language functions.

Syntax

-Aopt
Where:
opt
is a command-line option to pass to the assembler.

Note

Some compiler command-line options are passed to the assembler automatically whenever it is invoked by the compiler. For example, if the option --cpu is specified on the compiler command line, then this option is passed to the assembler whenever it is invoked to assemble .s files or embedded assembly code.
To see the compiler command-line options passed by the compiler to the assembler, use the compiler command-line option -A--show_cmdline.

Examples

armcc -A--predefine="NEWVERSION SETL {TRUE}" main.c

Restrictions

If an unsupported option is passed through using -A, an error is generated by the assembler.
Related reference
7.26 --cpu=list
7.27 --cpu=name compiler option
7.86 -Lopt
7.140 --show_cmdline
Non-ConfidentialPDF file icon PDF versionARM DUI0375E
Copyright © 2007, 2008, 2011, 2012, 2014 ARM. All rights reserved.