|
|||||||||||
Technical Support Support Resources
Product Information |
BL51: Warning L16 (Uncalled Segment, Ignored for Overlay)Information in this article applies to:
QUESTIONMy simple project has two modules, a C and an Assembly module. I am trying to call one of the C functions from within the assembly module, but each time I build the project I get:
I have already checked the knowledgebase and have seen several articles relating to this warning, but they don't help. How do I fix this problem? ANSWERThe following is a solution should accomplish what you are trying to do:
CAUSEThe reason you may be receiving this warning is that although you have an assembly module that calls a C function, the assembly module itself is not being called by anything. RESOLUTIONAs illustrated above, you have to define a routine in your assembly module that calls the C function. The assembly routine then must be called from main or some other function that is called from main in C. Note that programs must have a "main" routine and in this example, the "main" routine is in the C module. See the Attached Files section below to download an example project. The actual code for the assembly module was generated using the SRC pragma. MORE INFORMATION
SEE ALSO
ATTACHED 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.