Because the 8051 is only 16 bits address space(64KB). So, if my code is more than 64KB. It will need to switch the code bank. I found some function the C51 add correct switch bank code, sometimes not. I want to know if there is any condition will make C51 not add switch bank code in different bank function. Or if there is any limition for different bank function to call other other bank function.
I found some function the C51 add correct switch bank code, sometimes not. If you are saying that the tools do not correctly switch code banks, you should probably contact technical support. There are currently no known issues with code banking. We have a lot of customers who have been using it for many years with no reported problems. Jon
Maybe right! The code banking function works different when using different MCU,you should change Some Parameter in L51_bank.a51 Steven Young
Not all functions will need bank switch code. Code in the common bank, for instance, can always be called directly, as can functions in the banked area called from another function in the same bank.