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
  • What you're being told is that you don't need to explicitly specify which bank the code goes into. The linker will fit the code into the banks which you say are available.

    That should work.

    When you get a deeper understanding of the banking mechanism and linker controls, you could (if you feel it is necessary) start locating certain blocks of code into specific banks - But if the code runs at an acceptable speed, then you do not have to.

Reply
  • What you're being told is that you don't need to explicitly specify which bank the code goes into. The linker will fit the code into the banks which you say are available.

    That should work.

    When you get a deeper understanding of the banking mechanism and linker controls, you could (if you feel it is necessary) start locating certain blocks of code into specific banks - But if the code runs at an acceptable speed, then you do not have to.

Children