Specifications

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 @ operator, see Efficient usage of segments and memory,
page 47.
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