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>-specific Features<br />

4.6.20 #pragma [no_]softfp_linkage<br />

This pragma controls software floating-point linkage.<br />

#pragma softfp_linkage asserts that all function declarations up to the next #pragma<br />

no_softfp_linkage describe functions that use software floating-point linkage.<br />

Note<br />

This pragma has the keyword equivalent __softfp.<br />

Usage<br />

This pragma can be useful when applied to an entire interface specification, located in<br />

the header file, without altering that file.<br />

Default<br />

The default is #pragma no_softfp_linkage.<br />

See also<br />

• __softfp on page 4-15<br />

• Floating-point linkage on page 4-33 in the <strong>Compiler</strong> User <strong>Guide</strong>.<br />

4.6.21 #pragma unroll [(n)]<br />

This pragma instructs the compiler to unroll a loop by n interations.<br />

Note<br />

Both vectorized and non vectorized loops can be unrolled using #pragma unroll [(n)].<br />

That is, #pragma unroll [(n)] applies to both --vectorize and --no_vectorize.<br />

Syntax<br />

#pragma unroll<br />

#pragma unroll (n)<br />

Where:<br />

n<br />

is an optional value indicating the number of iterations to unroll.<br />

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

Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!