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

C51 Code banking: library

I have following question about code banking.
There's some small tests, that uses one big library.
So, how can I put this library to different code banks?
Ofc, I can include this tests right in library project, but are there any other solutions?

Parents
  • "Unless you have an object module that is larger than the size of one of your banks, I cannot see how there can be a problem."
    Hmm...May be I dont understand something. Im new to keil/c51. When I include library to project, I get the following:
    <BANK1> "...name.LIB"
    <BANK2> "....obj"
    and so.
    If library is large enough, and it cannot fit in one bank, linker throws an error.

    ps. My solution: I split the tests, so linker cut unused code from library.

Reply
  • "Unless you have an object module that is larger than the size of one of your banks, I cannot see how there can be a problem."
    Hmm...May be I dont understand something. Im new to keil/c51. When I include library to project, I get the following:
    <BANK1> "...name.LIB"
    <BANK2> "....obj"
    and so.
    If library is large enough, and it cannot fit in one bank, linker throws an error.

    ps. My solution: I split the tests, so linker cut unused code from library.

Children