Datasheet
C and C++ Compilers
2-18 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI 0067D
-fi
This option is used with
-list
to list the lines from any files included with
directives of the form
#include "file"
.
-fj
This option is used with
-list
to list the lines from any files included with
directives of the form
#include <file>
.
-fu
This option is used with
-list
to list source that was not preprocessed.
By default, if you specify
-list
, the compiler lists the source text as seen
by the compiler after preprocessing. If you specify
-fu
, the unexpanded
source text is listed. For example:
p = NULL; /* assume #defined NULL 0 */
If
-fu
is not specified, this is listed as:
p = 0;
If
-fu
is specified, it is listed as:
p = NULL;
-o file
This option names the file that holds the final output of the compilation:
•If
file
is
-
, the output is written to the standard output stream and
-S
is assumed (unless
-E
is specified).
• Used with
-c
, it names the object file.
• Used with
-S
, it names the assembly language file.
• Used with
-E
, it specifies the output file for preprocessed source.
• If none of
-c
,
-S
, or
-E
is present, it specifies the output file of the
link step. An executable image called
file.axf
is created.
If you do not specify a
-o
option, the name of the output file defaults to
the name of the input file with the appropriate filename extension. For
example, the output from
file1.c
is named
file1.o
if the
-c
option is
specified, and
file1.s
if
-S
is specified. If none of
-c
,
-S
,
-E
, or
-o
is
present the default linker output name of
__image.axf
is used.
-MD
This option compiles the source and writes makefile dependency lines to
file
inputfilename.d
. The output file is suitable for use by a make utility.
-depend filename
This option is the same as
-MD
, but writes makefile dependency lines to
the specified file.
-S
This option writes a listing of the assembly language generated by the
compiler to a file. However, unlike the
-asm
option, object modules are
not generated. The name of the assembly output file defaults to
file.s
in