Compilation tools command-line option rules

You can control many aspects of the compilation tools operation with command-line options.

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

Single-letter options

All single-letter options, including 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, including 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

Compilation tools 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

In some Unix shells, you might have to include quotes when using arguments to a some command-line options, for example:

--keep='s.o(vect)'

Show/hideSee also

Copyright © 2010-2012 ARM. All rights reserved.ARM DUI 0529G
Non-ConfidentialID021412