Atmel CAVR-4 Manual De Usuario

Descargar
Página de 323
CAVR-4
56
Using a prebuilt library
AVR® IAR C/C++ Compiler
Reference Guide
DEBUG SUPPORT IN THE RUNTIME LIBRARY
You can make the library provide different levels of debugging support—basic, runtime, 
and I/O debugging.
The following table describes the different levels of debugging support:
If you build your application project with the XLINK options With runtime control 
modules
 or With I/O emulation modules, certain functions in the library will be 
replaced by functions that communicate with the IAR C-SPY Debugger. For further 
information, see C-SPY Debugger runtime interface, page 76. 
To set linker options for debug support in IAR Embedded Workbench, choose 
Project>Options and select the Linker category. On the Output page, select the 
appropriate Format option.
Using a prebuilt library
The prebuilt runtime libraries are configured for different combinations of the following 
features:
Type of library
Processor option (
-v
)
Memory model option (
--memory_model
)
AVR enhanced core option (
--enhanced_core
)
Debugging 
support
Linker option in IAR 
Embedded Workbench
Linker command 
line option
Description
Basic debugging
Debug information for 
C-SPY
-Fubrof
Debug support for C-SPY 
without any runtime support
Runtime debugging With runtime control 
modules
-r
The same as -Fubrof, but 
also includes debugger 
support for handling program 
abort, exit, and assertions.
I/O debugging
With I/O emulation 
modules
-rt
The same as -r, but also 
includes debugger support for 
I/O handling, which means 
that stdin and stdout are 
redirected to the C-SPY 
Terminal I/O window, and that 
it is possible to access files on 
the host computer during 
debugging.
Table 14: Levels of debugging support in runtime libraries