|
|||||||||||
Technical Support Support Resources
Product Information |
C166: Locate Constants To Absolute AddressesInformation in this article applies to:
QUESTIONI need to locate a memory range table to a specific memory address. In addition, I need at the beginning of this memory area a pointer to the address table, and a specified long value. All this information must reside in Flash ROM on a fixed memory address (0x200 in my case). How can I do this? ANSWERThe following example locates certain variables in the order you specify in the source file. We have called this file INIT.C, and this module contains only the declaration for these variables.
The C166 Compiler generates an object file for INIT.C and includes a section for all the variables in the huge const memory area. To locate this section, enter under Options for Target - L166 Locate - Users Sections:
The L166 SECTIONS directive requires that you enter both the section name and the memory class name. MORE INFORMATION
SEE ALSO
Last 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.