29.12.2014 Views

RealView Compilation Tools Compiler Reference Guide - ARM ...

RealView Compilation Tools Compiler Reference Guide - ARM ...

RealView Compilation Tools Compiler Reference Guide - ARM ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Compiler</strong> Command-line Options<br />

When certain non-portable but widely supported constant initializers such as the cast of<br />

an address to an integral type are used, --extended_initializers causes the compiler to<br />

produce the same general warning concerning constant initializers that it normally<br />

produces in non-strict mode, rather than specific errors stating that the expression must<br />

have a constant value or have arithmetic type.<br />

Default<br />

The default is --no_extended_initializers when compiling with --strict or<br />

--strict_warnings.<br />

The default is --extended_initializers when compiling in non-strict mode.<br />

See also<br />

• --[no_]strict on page 2-84<br />

• --strict_warnings on page 2-85<br />

• Constant expressions on page 3-10.<br />

2.1.50 --feedback=filename<br />

This option enables the efficient elimination of unused functions.<br />

Syntax<br />

--feedback=filename<br />

Where:<br />

filename<br />

is the feedback file created by a previous execution of the <strong>ARM</strong> linker.<br />

Usage<br />

You can perform multiple compilations using the same feedback file, or specify<br />

multiple source files in a single compilation. The feedback file identifies the source file<br />

that contains the unused functions in a comment, and is not used by the compiler. The<br />

compiler places each unused function identified in the feedback file into its own ELF<br />

section in the corresponding object file.<br />

The feedback file contains information about a previous build. Because of this:<br />

• The feedback file might be out of date. That is, a function previously identified as<br />

being unused might be used in the current source. The linker removes the code for<br />

an unused function only if it is not used in the current source.<br />

<strong>ARM</strong> DUI 0348A Copyright © 2007, 2010 <strong>ARM</strong> Limited. All rights reserved. 2-37<br />

Non-Confidential

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!