Download RealView Compilation Tools Compiler Reference Guide

Transcript
Compiler Command-line Options
See also
•
--[no_]strict on page 2-84.
2.1.40
--dwarf2
This option instructs the compiler to use DWARF 2 debug table format.
Default
The compiler assumes --dwarf3 unless --dwarf2 is explicitly specified.
See also
•
--dwarf3.
2.1.41
--dwarf3
This option instructs the compiler to use DWARF 3 debug table format.
Default
The compiler assumes --dwarf3 unless --dwarf2 is explicitly specified.
See also
•
--dwarf2.
2.1.42
-E
This option instructs the compiler to execute only the preprocessor step.
By default, output from the preprocessor is sent to the standard output stream and can
be redirected to a file using standard UNIX and MS-DOS notation.
You can also use the -o option to specify a file for the preprocessed output. By default,
comments are stripped from the output. The preprocessor accepts source files with any
extension, for example, .o, .s, and .txt.
Example
armcc -E source.c > raw.c
See also
•
-C on page 2-13
ARM DUI 0348A
Copyright © 2007, 2010 ARM Limited. All rights reserved.
Non-Confidential
2-33