Keil™, An ARM® Company

RealView Compiler User's Guide

Using command-line options

2.1. Using command-line options

You can control many aspects of compiler operation with command-line options. The ARM compiler uses the Edison Design Group (EDG) front end. See the Edison Design Group web site at http://www.edg.com for more information on the EDG front end.

The following rules apply, depending on the type of option:

Single‑letter options

All single‑letter options, or single‑letter options with arguments, are preceded by a single dash . You can use a space between the option and the argument, or the argument can immediately follow the option. For example:

‑J directory

‑Jdirectory

Keyword options

All keyword options, or keyword options with arguments, are preceded by a double dash ‑‑. An = or space character is required between the option and the argument. For example:

‑‑depend=file.d

‑‑depend file.d

Compiler options that contain non‑leading or _ can use either of these characters. For example, ‑‑force_new_nothrow is the same as ‑‑force‑new‑nothrow.

To compile files with names starting with a dash, use the POSIX option -- to specify that all subsequent arguments are treated as filenames, not as command switches. For example, to compile a file named -ifile_1, use:

armcc ‑c ‑‑ ‑ifile_1
Copyright © 2007 ARM Limited. All rights reserved.ARM DUI 0375A