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 separate C51 library

Our project consists of firmware and application, which are stored in different memory--rom & otp. So the firmware part shall not be changed while application can be developed further on. Now for firmware the space for library functions are fixed but we don't know what library is needed for application development.

I found all the library functions are linked together under ?C?LIB_CODE. So the question is, how can I link/locate the library into two separate locations, one sits within 0x0000-0x0800 while the other is located above 0x0800?

Any help will be appreciated! Otherwise I have to leave some extra space for library in firmware memory which means waste of space..

Regards,

Xinyi

Parents
  • I've looked into the linker manual, but nothing obviously useful. They didn't mention how to convert the library to .obj
    You can't BUT you can compile the modules and NOT put them in a libray.
    or how to link/locate the library models to certain address.
    as I said locate .obj modules

    Am I doomed...?
    yes, if you are using a libarry that is not your own


    Erik

Reply
  • I've looked into the linker manual, but nothing obviously useful. They didn't mention how to convert the library to .obj
    You can't BUT you can compile the modules and NOT put them in a libray.
    or how to link/locate the library models to certain address.
    as I said locate .obj modules

    Am I doomed...?
    yes, if you are using a libarry that is not your own


    Erik

Children
No data