2.1.1. -Aopt

This option 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 assembler.

To see the compiler command-line options passed by the compiler to the assembler, use the compiler command-line option -A--show_cmdline.

Example

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

Restrictions

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

See also

Copyright © 2007, 2010 ARM Limited. All rights reserved.ARM DUI 0348A
Non-Confidential