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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Compiler</strong> Coding Practices<br />

5.61 New library features of C99<br />

The C99 standard introduces several new library features of interest to programmers, including:<br />

• Some features similar to extensions to <strong>the</strong> C90 standard libraries offered in UNIX<br />

standard libraries, <strong>for</strong> example, <strong>the</strong> snprintf family of functions.<br />

• Some entirely new library features, <strong>for</strong> example, <strong>the</strong> standardized floating-point<br />

environment offered in .<br />

• New libraries, and new macros and functions <strong>for</strong> existing C90 libraries.<br />

A selection of new features in C99 that might be of interest to developers using <strong>the</strong>m <strong>for</strong> <strong>the</strong> first<br />

time are documented.<br />

Note<br />

C90 is compatible with Standard C++ in <strong>the</strong> sense that <strong>the</strong> language specified by <strong>the</strong> standard is<br />

a subset of C++, except <strong>for</strong> a few special cases. New features in <strong>the</strong> C99 standard mean that C99<br />

is no longer compatible with C++ in this sense.<br />

Many library features that are new to C99 are available in C90 and C++. Some require macros<br />

such as USE_C99_ALL or USE_C99_MATH to be defined be<strong>for</strong>e <strong>the</strong> #include.<br />

5.61.1 See also<br />

Concepts<br />

• Additional library functions in C99 on page 5-93<br />

• Complex numbers in C99 on page 5-94<br />

• Boolean type and in C99 on page 5-95<br />

• Extended integer types and functions in and in C99 on page 5-96<br />

• floating-point environment access in C99 on page 5-97<br />

• snprintf family of functions in C99 on page 5-98<br />

• type-generic math macros in C99 on page 5-99<br />

• wide character I/O functions in C99 on page 5-100.<br />

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

ID061811<br />

Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!