Keil Logo

L166: Absolute Function Address


Information in this article applies to:

  • C166 All Versions

QUESTION

How can I locate a C function at an absolute address using C166/L166?

ANSWER

You may not locate an individual function, but all functions of a module to a fixed address using the L166 directive SECTIONS to specify an address for your function. For example, to locate the section ?PR?ABC in class NCODE at address 0x12000, you would use the following command line syntax:

L166 abc.obj SECTIONS( ?PR?ABC%NCODE ( 0x12000 ) )

Note that the section name is composed of the module name and the memory model as explained under Sections, Classes, and Groups in the C166 User's Guide.

MORE INFORMATION

SEE ALSO


Last Reviewed: Thursday, February 25, 2021


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

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.