|
|||||||||||
Technical Support Support Resources
Product Information |
BL51: What Is the _XDATA_GROUP?Information in this article applies to:
QUESTIONWhat is stored in the _XDATA_GROUP_? I don't recall declaring or using this group in my program. However, the linker includes it in the link map.
ANSWERThe _XDATA_GROUP_ is a segment that contains all the automatic variables and function arguments from your program that are stored in XDATA memory. Starting in C51 V6, XDATA variables from your program (automatics and arguments only) are overlaid. For example, the following call tree (generated by the BL51 linker) shows that the startup code calls the MAIN C function. The MAIN function uses 1 byte of XDATA and calls FUNC_A, FUNC_B, and FUNC_C. FUNC_A, FUNC_B, and FUNC_C each use 5 bytes of XDATA. However, since each of these routines is mutually exclusive, their XDATA memory may be overlaid. Therefore, the linker starts the XDATA segments for each of these functions at the same address (0001H in this example).
MORE INFORMATION
SEE ALSOLast Reviewed: Thursday, February 25, 2021 | ||||||||||
|
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.