Specifications
CAVR-4
248
IAR CLIB Library
AVR® IAR C/C++ Compiler
Reference Guide
LIBRARY FUNCTIONS AS INTRINSIC FUNCTIONS
The following C library functions will under some circumstances be handled as intrinsic
functions and will generate inline code instead of an ordinary function call:
memcpy
memset
strcat
strcmp
strcpy
strlen
IAR CLIB Library
The IAR CLIB Library provides most of the important C library definitions that apply
to embedded systems. These are of the following types:
● Standard C library definitions available for user programs. These are documented in
this chapter.
● The system startup code. It is described in the chapter The CLIB runtime
environment in this guide.
● Runtime support libraries; for example, low-level floating-point routines.
● Intrinsic functions, allowing low-level use of AVR features. See the chapter
Intrinsic functions for more information.
● Special compiler support for accessing strings in flash memory, see AVR– spec ifi c
library functions.
clocale Adapting to different cultural conventions
cmath Computing common mathematical functions
csetjmp Executing non-local goto statements
csignal Controlling various exceptional conditions
cstdarg Accessing a varying number of arguments
cstddef Defining several useful types and macros
cstdio Performing input and output
cstdlib Performing a variety of operations
cstring Manipulating several kinds of strings
ctime Converting between various time and date formats
Header file Usage
Table 77: New standard C header files—DLIB (Continued)