Specifications

CAVR-4
58
Using a prebuilt library
AVR® IAR C/C++ Compiler
Reference Guide
On the command line, you must specify the following items:
Specify which library object file to use on the XLINK command line, for instance:
dlavr-3s-ec-64-f.r90
Specify the include paths for the compiler and assembler:
-I avr\inc
Specify the library configuration file for the compiler:
--dlib_config C:\...\dlavr-3s-ec-64-f.h
You can find the library object files and the library configuration files in the subdirectory
avr\lib\dlib.
CUSTOMIZING A PREBUILT LIBRARY WITHOUT REBUILDING
The prebuilt libraries delivered with the AVR IAR C/C++ Compiler can be used as is.
However, it is possible to customize parts of a library without rebuilding it. There are
two different methods:
Setting options for:
Formatters used by printf and scanf
The sizes of the heap and the stack
Overriding library modules with your own customized versions.
The following items can be customized:
For a description about how to override library modules, see Overriding library
modules, page 61.
Items that can be customized Described on page
Formatters for printf and scanf Choosing formatters for printf and scanf, page 59
Startup and termination code System startup and termination, page 64
Low-level input and output Standard streams for input and output, page 67
File input and output File input and output, page 70
Low-level environment functions Environment interaction, page 73
Low-level signal functions Signal and raise, page 73
Low-level time functions Time, page 74
Size of heaps, stacks, and segments Placing code and data, page 33
Table 16: Customizable items