Atmel CAVR-4 Manual De Usuario
![Atmel](https://files.manualsbrain.com/attachments/0369829915bda09f9c2e00fb805a7753579683b5/common/fit/150/50/8d2bf08978ec3e5bc63f4343ac5e91ce8d0e40045619fa520d910d64af8f/brand_logo.png)
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:
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.
modules, page 61.
Items that can be customized
Described on page
Formatters for printf and scanf
Startup and termination code
Low-level input and output
File input and output
Low-level environment functions
Low-level signal functions
Low-level time functions
Size of heaps, stacks, and segments
Table 16: Customizable items