| |||
| Home > Getting started with the ARM Compiler > Using command-line options | |||
You can control many aspects of compiler operation with command-line options.
The following rules apply, depending on the type of option:
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-JdirectoryAll 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.dCompiler 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