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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

softvfp+vfpv2<br />

Selects a floating-point library with software floating-point linkage that<br />

uses VFP instructions. Select this option if you are interworking Thumb<br />

code with <strong>ARM</strong> code on a system that implements a VFP unit.<br />

If you select this option:<br />

• Compiling with --thumb behaves in a similar way to --fpu=softvfp<br />

except that it links with floating-point libraries that use VFP<br />

instructions.<br />

• Compiling with --arm behaves in a similar way to --fpu=vfpv2<br />

except that all functions are given software floating-point linkage.<br />

This means that functions pass and return floating-point arguments<br />

and results in the same way as --fpu=softvfp, but use VFP<br />

instructions internally.<br />

Note<br />

If you specify softvfp+vfpv2 with the --arm or --thumb option for C code,<br />

it ensures that your interworking floating-point code is compiled to use<br />

software floating-point linkage.<br />

softvfp+vfpv3<br />

Selects a floating-point library with software floating-point linkage that<br />

uses VFPv3 instructions. Select this option if you are interworking<br />

Thumb code with <strong>ARM</strong> code on a system that implements a VFPv3 unit.<br />

See also<br />

• --arm on page 2-7<br />

• --cpu=name on page 2-15<br />

• --thumb on page 2-86<br />

• __softfp on page 4-15<br />

• The --fpu option on page 4-32 in the <strong>Compiler</strong> User <strong>Guide</strong><br />

• Using the --fpu option on page 4-34 in the <strong>Compiler</strong> User <strong>Guide</strong>.<br />

2.1.56 --[no_]friend_injection<br />

This option controls the visibility of friend declarations in C++.<br />

In C++, it controls whether or not the name of a class or function that is declared only<br />

in friend declarations is visible when using the normal lookup mechanisms.<br />

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

Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!