Keil Logo

BL51: SPECIFYING THE ORDER IN WHICH OBJ FILES ARE LINKED


Information in this article applies to:

  • C51 Version 5.50
  • C51 Version 6.00 Beta
  • C51 Version 6.00

QUESTION

Is it possible to specify the order in which the OBJ files that make up my program are linked together?

ANSWER

Yes. OBJ files are linked in the order in which they are specified on the linker command line. If you use µVision or µVision2, the OBJ files are linked in the order in which they are specified in your project file.

To link library files in a particular order, you must manually specify the segments from the library in the order you want them to be linked. For example:

BL51 myfile.obj, mylib.lib(mymodule1, mymodule2)

MORE INFORMATION

SEE ALSO

Last Reviewed: Thursday, December 14, 2006


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.