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 pragma must appear before the first token that does not belong to a preprocessing<br />

directive.<br />

See also<br />

• Precompiled header files on page 2-17 in the Compiler User Guide.<br />

4.6.11 #pragma import symbol_name<br />

This pragma generates an importing reference to symbol_name. This is the same as the<br />

assembler directive:<br />

IMPORT symbol_name<br />

Syntax<br />

#pragma import symbol_name<br />

Where:<br />

symbol_name is a symbol to be imported.<br />

Usage<br />

You can use this pragma to select certain features of the C library, such as the heap<br />

implementation or real-time division. If a feature described in this book requires a<br />

symbol reference to be imported, the required symbol is specified.<br />

See also<br />

• Building an application with the C library on page 2-19 in the Libraries and<br />

Floating Point Support Guide.<br />

4.6.12 #pragma import(__use_full_stdio)<br />

This pragma selects an extended version of microlib that uses full standard ANSI C<br />

input and output functionality.<br />

The following exceptions apply:<br />

• feof() and ferror() always return 0<br />

• setvbuf() and setbuf() are guaranteed to fail.<br />

feof() and ferror() always return 0 because the error and end-of-file indicators are not<br />

supported.<br />

setvbuf() and setbuf() are guaranteed to fail because all streams are unbuffered.<br />

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

ID101213<br />

Non-Confidential,

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

Saved successfully!

Ooh no, something went wrong!