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

code data in bank

Hi,
Could I declare a code data (const data) that
reside in one bank only? I found that the
code data will be duplicated in all bank.
Thank.

Parents
  • That's quite certainly not possible. The reason being that banking actual code is possible by doing control flow analysis (i.e. finding out which function calls which other functions). Which is hard, but doable with a bit of hand-holding.

    To allow data in banked code space, you would have to do complete data flow analysis, i.e. find out from where in the entire code a given piece of data may be used. That's so much harder that nobody generally dares even try it.

Reply
  • That's quite certainly not possible. The reason being that banking actual code is possible by doing control flow analysis (i.e. finding out which function calls which other functions). Which is hard, but doable with a bit of hand-holding.

    To allow data in banked code space, you would have to do complete data flow analysis, i.e. find out from where in the entire code a given piece of data may be used. That's so much harder that nobody generally dares even try it.

Children