|
|||||||||||||
Technical Support On-Line Manuals LX51 User's Guide ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Class InformationThe linker creates special symbols (using no program or data space) that contain address and length information for classes used in an application.
You may create declarations from external variables to access this information. For example, use the following to get information about the length of the CODE memory class in the measure module: extern unsigned char _code_L_; unsigned code_length = (unsigned int) & _code_L_; The SROM.H header file contains macro definitions that simplify access to memory class information: #include <srom.h> SROM_MC(code) // Create external declarations for the CODE Class unsigned code_size = SROM_MC_LEN(code); unsigned code_start = SROM_MC_SRC(code)1; unsigned code_end = SROM_MC_END(code); unsigned code_target = SROM_MC_TRG(code); Note
| ||||||||||||
|
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.