04.01.2015 Views

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

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.

Compiler-specific Features<br />

This version of microlib stdio can be retargeted in the same way as the standardlib stdio<br />

functions.<br />

See also<br />

• --library_type=lib on page 2-81<br />

• Chapter 3 The C Micro-library in the Libraries and Floating Point Support Guide<br />

• Tailoring the input/output functions on page 2-78 in the Libraries and Floating<br />

Point Support Guide.<br />

4.6.13 #pragma import(__use_smaller_memcpy)<br />

This pragma selects a smaller, but slower, version of memcpy() for use with the C<br />

micro-library (microlib). A byte-by-byte implementation of memcpy() using LDRB and<br />

STRB is used.<br />

Default<br />

The default version of memcpy() used by microlib is a larger, but faster, word-by-word<br />

implementation using LDR and STR.<br />

See also<br />

• --library_type=lib on page 2-81<br />

• Chapter 3 The C Micro-library in the Libraries and Floating Point Support<br />

Guide.<br />

4.6.14 #pragma inline, #pragma no_inline<br />

These pragmas control inlining, similar to the --inline and --no_inline command-line<br />

options. A function defined under #pragma no_inline is not inlined into other functions,<br />

and does not have its own calls inlined.<br />

The effect of suppressing inlining into other functions can also be achieved by marking<br />

the function as __declspec(noinline) or __attribute__((noinline)).<br />

Default<br />

The default is #pragma inline.<br />

See also<br />

• --inline, --no_inline on page 2-75<br />

4-66 Copyright © 2007-2010 <strong>ARM</strong>. All rights reserved. <strong>ARM</strong> DUI 0348C<br />

Non-Confidential,<br />

ID101213

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

Saved successfully!

Ooh no, something went wrong!