8.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.

Restrictions

If an unsupported option is passed through using -A, an error is generated by the assembler.

Example

armcc -A--predefine="NEWVERSION SETL {TRUE}" main.c
Non-ConfidentialPDF file icon PDF versionARM DUI0472M
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.