Datasheet
C and C++ Compilers
2-10 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI 0067D
debug-options
This specifies whether or not debug tables are generated, and their
format. See Generating debug information on page 2-22 for
details.
code-generation-options
This specifies options such as optimization, byte order, and
alignment of data produced by the compiler. See Controlling code
generation on page 2-24 for details.
warning-options
This specifies whether specific warning messages are generated.
See Controlling warning messages on page 2-31 details.
additional-checks
This specifies several additional checks that can be applied to your
code, such as checks for data flow anomalies and unused
declarations. See Specifying additional checks on page 2-35 for
details.
error-options
This enables you to turn off specific recoverable errors or
downgrade specific errors to warnings. See Controlling error
messages on page 2-37 for details.
source
This provides the filenames of one or more text files containing C
or C++ source code. By default, the compiler looks for source
files, and creates output files, in the current directory.
If a source file is an assembly file (that is, one with an
.s
extension) the assembler activates to process the source file.
Reading compiler options from a file
When the operating system restricts the command line length, use the following option
to read additional command-line options from a file:
-via filename
This opens a file and reads additional command-line options from it. You can nest
-via
calls within via files by including
-via filename2
in the file.
In the following example, the options specified in
input.txt
are read as the
command-line is parsed:
armcpp -via input.txt source.c
See Appendix A Via File Syntax for more information on writing via files.