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 />

• The NEON Vectorizing <strong>Compiler</strong> <strong>Guide</strong>.<br />

2.1.121 --[no_]vfe<br />

This option enables or disables Virtual Function Elimination (VFE) in C++.<br />

VFE enables unused virtual functions to be removed from code. When VFE is enabled,<br />

the compiler places the information in special sections with the prefix .arm_vfe_. These<br />

sections are ignored by linkers that are not VFE-aware, because they are not referenced<br />

by the rest of the code. Therefore, they do not increase the size of the executable.<br />

However, they increase the size of the object files.<br />

Mode<br />

This option is effective only if the source language is C++.<br />

Default<br />

The default is --vfe, except for the case where legacy object files compiled with a<br />

pre-RVCT v2.1 compiler do not contain VFE information.<br />

See also<br />

• Calling a pure virtual function on page C-3<br />

• Unused function elimination on page 3-12 in the Linker <strong>Guide</strong>.<br />

2.1.122 --via=filename<br />

This option instructs the compiler to read additional command-line options from a<br />

specified file. The options read from the file are added to the current command line.<br />

Via commands can be nested within via files.<br />

Syntax<br />

--via=filename<br />

Where:<br />

filename<br />

is the name of a via file containing options to be included on the<br />

command line.<br />

Example<br />

Given a source file main.c, a via file apcs.txt containing the line:<br />

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

Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!