This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to locate a library code?

I am using Silicon-Labs 8051F321 with PK51 (C51 + LX51) and use Silabs' library USBXpress to operate the USB.
I need to locate the Library code in specific location (since two applications are using the same library).
All the linker commands that are related to location are locating source code but NOT LIBRARY code.

How can I locate the Library code?

Parents
  • What you'll have to do is to run the linker a total of three times.

    Once to turn your library into a single object module, with a fixed location, then once more for each project using this "static shared library", to link the project to the library.

    If that library needs interrupts, this will become even more complicated. It may even become impossible.

Reply
  • What you'll have to do is to run the linker a total of three times.

    Once to turn your library into a single object module, with a fixed location, then once more for each project using this "static shared library", to link the project to the library.

    If that library needs interrupts, this will become even more complicated. It may even become impossible.

Children
No data