Datasheet
C and C++ Compilers
ARM DUI 0067D Copyright © 1999-2001 ARM Limited. All rights reserved. 2-9
2.3 Command syntax
This section describes the command syntax for the ARM C and C++ compilers.
You can control many aspects of compiler operation with command-line options. All
options are prefixed by a minus – sign, and some options are followed by an argument.
In most cases the ARM C and C++ compilers permit space between the option letter and
the argument.
2.3.1 Invoking the compiler
The command for invoking the ARM compilers is:
compiler [PCS-options] [source-language] [search-paths] [preprocessor-options]
[output-format] [target-options] [debug-options] [code-generation-options]
[warning-options] [additional-checks] [error-options] [source]
The command-line options can appear in any order. The options are:
compiler
This is one of armcc, tcc, armcpp, or tcpp.
PCS-options
This specifies the procedure call standard to use. See Procedure
Call Standard options on page 2-12 for details.
source-language
This specifies the variant of source language that is accepted by
the compiler. The default is ANSI C for the C compilers and ISO
Standard C++ for the C++ compilers. See Setting the source
language on page 2-14 for details.
search-paths
This specifies the directories that are searched for included files.
See Specifying search paths on page 2-15 for details.
preprocessor-options
This specifies preprocessor behavior, including preprocessor
output and macro definitions. See Setting preprocessor options on
page 2-15 for details.
output-format
This specifies the format for the compiler output. You can use
these options to generate assembly language output listing files
and object files. See Specifying output format on page 2-17 for
details.
target-options
This specifies the target processor or architecture. See Specifying
the target processor or architecture on page 2-19 for details.