Atmel CAVR-4 Manual De Usuario
![Atmel](https://files.manualsbrain.com/attachments/0369829915bda09f9c2e00fb805a7753579683b5/common/fit/150/50/8d2bf08978ec3e5bc63f4343ac5e91ce8d0e40045619fa520d910d64af8f/brand_logo.png)
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:
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
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.
programming the EEPROM during the download of the code.
Use the command line option
--eeprom_size
to set the address range for this segment;
see --eeprom_size, page 180, for additional information.