29.10.2014 Views

ARM Compiler toolchain v4.1 for µVision Using the Compiler

ARM Compiler toolchain v4.1 for µVision Using the Compiler

ARM Compiler toolchain v4.1 for µVision Using the Compiler

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> Coding Practices<br />

5.41 Default selection of hardware or software floating-point support<br />

The default target FPU architecture is derived from use of <strong>the</strong> --cpu option.<br />

If <strong>the</strong> CPU specified with --cpu has a VFP coprocessor, <strong>the</strong> default target FPU architecture is<br />

<strong>the</strong> VFP architecture <strong>for</strong> that CPU. For example, <strong>the</strong> option --cpu=Cortex-R4F implies <strong>the</strong> option<br />

--fpu=VFPv3_D16.<br />

If a VFP coprocessor is present, VFP instructions are generated. If <strong>the</strong>re is no VFP coprocessor,<br />

<strong>the</strong> compiler generates code that makes calls to <strong>the</strong> software floating-point library fplib to carry<br />

out floating-point operations. fplib is available as part of <strong>the</strong> standard distribution of <strong>the</strong> <strong>ARM</strong><br />

compilation tools suite of C libraries.<br />

5.41.1 See also<br />

Concepts<br />

• <strong>Compiler</strong> support <strong>for</strong> floating-point arithmetic on page 5-53.<br />

<strong>Using</strong> <strong>ARM</strong> ® C and C++ Libraries and Floating-Point Support:<br />

• Chapter 4 Floating-point support.<br />

<strong>ARM</strong> DUI 0375C Copyright © 2007-2008, 2011 <strong>ARM</strong>. All rights reserved. 5-55<br />

ID061811<br />

Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!