|
|||||||||||
Technical Support Support Resources
Product Information |
A51: Lookup Tables in AssemblyInformation in this article applies to:
QUESTIONIn assembly, I must create a lookup table and locate it at a fixed address. I will access the table in an assembly function that I must call from C. How should I proceed? ANSWERThe example project attached to this knowledgebase article contains three source files:
The contents of each file is listed below. To locate the lookup table at a fixed address of 0x1000, open Project - Options for Target - BL51 Locate. In the Code Segment field enter SEGMENT_NAME(start_address). For this example, you should enter LOOKUPTABLE(0x1000). For your application, you may need to look up the segment name from the map file (*.M51). LOOKUPTABLE.INC
ASM_TEST.ASM
TEST.C
SEE ALSOATTACHED FILESRequest the files attached to this knowledgebase article. 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.