Technical Support
On-Line Manuals
Compiler Reference Guide
Version 6.15
You can import linker-defined symbols into your C or C++ source code. They are external symbols and you must take the address of them.
The only case where the & operator is not required is when the array declaration is used, for example extern char symbol_name[];.
&
extern char symbol_name[];
The following examples show how to obtain the correct value:
extern int Image$$ER_ZI$$Limit; heap_base = (uintptr_t)&Image$$ER_ZI$$Limit;
extern int Image$$ER_ZI$$Length; extern char Image$$ER_ZI$$Base[]; memset(Image$$ER_ZI$$Base, 0, (size_t)&Image$$ER_ZI$$Length);
Cookie Settings | Terms of Use | Privacy | Accessibility | Trademarks | Contact Us | Feedback
Copyright © 2005-2019 Arm Limited (or its affiliates). All rights reserved.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
Change Settings
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.