Keil™, An ARM® Company

Technical Support

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 indivitual 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 combosed 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

FORUM THREADS

The following Discussion Forum threads may provide information related to this topic.

Last Reviewed: Friday, September 30, 2005


Did this article provide the answer you needed?
 
Yes
No
Not Sure