Atmel CAVR-4 Manual De Usuario

Descargar
Página de 323
CAVR-4
204
Descriptions of extended keywords
AVR® IAR C/C++ Compiler
Reference Guide
The following table summarizes the extended keywords that can be used on data:
Descriptions of extended keywords
The following sections give detailed information about each extended keyword.
@
The 
@
 operator can be used for placing global and static variables at absolute addresses. 
The syntax can also be used for placing variables and functions in named segments.
For more information about the 
@
Extended keywords for 
data
Description
@
Controls the storage of data objects and functions
_ _eeprom
Controls the storage of data objects in code memory space
_ _ext_io
Controls the storage of data objects in I/O memory space
Supports I/O instructions; used for SFRs
_ _far
Controls the storage of data objects in data memory space
_ _farflash
Controls the storage of data objects in code memory space
_ _flash
Controls the storage of data objects in code memory space
_ _generic
Declares a generic pointer
_ _huge
Controls the storage of data objects in data memory space
_ _hugeflash
Controls the storage of data objects in code memory space
_ _io
Controls the storage of data objects in I/O memory space
Supports I/O instructions; used for SFRs
_ _near
Controls the storage of data objects in data memory space
_ _no_init
Supports non-volatile memory
_ _regvar
Places a data object in a register
_ _root
Ensures that a function or data object is included in the object code 
even if unused
_ _tiny
Controls the storage of data objects in data memory space
_ _tinyflash
Controls the storage of data objects in code memory space
Table 54: Summary of extended keywords for data