Atmel CAVR-4 Manual De Usuario

Descargar
Página de 323
CAVR-4
152
Descriptions of segments
AVR® IAR C/C++ Compiler
Reference Guide
Description
Holds the internal data stack. This segment and its length is normally defined in the 
linker command file with the following command:
-Z(DATA)CSTACK+nn=start
or
-Z(DATA)CSTACK=start-end
where 
nn
 is the length, 
start
 is the first memory location, and 
end
 is the last memory 
location.
DIFUNCT
Holds pointers to constructor blocks in C++ code.
XLINK segment memory type
CODE
Memory space
Flash. The address range is 
0x0–0xFFFF
.
Description
When using C++ and global objects, it is necessary to call the constructor methods of 
these global objects before 
main
 is called.
EEPROM_AN
Variables with an absolute location in the built-in EEPROM.
XLINK segment memory type
XDATA
Memory space
EEPROM. 
Description
This segment is not copied to EEPROM during system startup. Instead it is used for 
programming the EEPROM during the download of the code.
Use the command line option 
--eeprom_size
 to set the address range for this segment; 
se--eeprom_size, page 180, for additional information.