Keil™, An ARM® Company

Technical Support

L166: LOCATING PROGRAM SECTIONS IN ORDER


Information in this article applies to:

  • C166 Version 3.12
  • C166 Version 4.05

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, 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:

L166 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