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.
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.