Atmel CAVR-4 Manual De Usuario

Descargar
Página de 323
CAVR-4
Part 2. Compiler reference
243
Library functions
This chapter gives an introduction to the C and C++ library functions. It also 
lists the header files used for accessing library definitions.
At the end of this chapter, all AVR-specific library functions are described.
For detailed reference information about the library functions, see the online 
help system.
Introduction
The AVR IAR C/C++ Compiler provides two different libraries:
IAR DLIB Library is a complete ISO/ANSI C and C++ library. This library also 
supports floating-point numbers in IEEE 754 format and it can be configured to 
include different levels of support for locale, file descriptors, multibytes, et cetera.
IAR CLIB Library is a light-weight library, which is not fully compliant with 
ISO/ANSI C. Neither does it fully support floating-point numbers in IEEE 754 
format or does it support Embedded C++. 
Note that different customization methods are normally needed for these two libraries. 
For additional information, see the chapter The DLIB runtime environment and The 
CLIB runtime environment
,
 respectively.
For detailed information about the library functions, see the online documentation 
supplied with the product. There is also keyword reference information for the DLIB 
library functions. To obtain reference information for a function, select the function 
name in the editor window and press F1.
For additional information about library functions, see the chapter 
Implementation-defined behavior in this guide.
HEADER FILES
Your application program gains access to library definitions through header files, which 
it incorporates using the 
#include
 directive. The definitions are divided into a number 
of different header files, each covering a particular functional area, letting you include 
just those that are required.
It is essential to include the appropriate header file before making any reference to its 
definitions. Failure to do so can cause the call to fail during execution, or generate error 
or warning messages at compile time or link time.