Keil™, An ARM® Company

Technical Support

C51: CALCULATING CODE SPACE FOR BANK SWITCHING


Information in this article applies to:

  • C51 All Versions

QUESTION

How do I calculate the amount of additional code space if I have a code banking program and I add another code bank?

ANSWER

In most cases, this calculation is simple. It is equal to the size of the bank area. This is usually specified on the linker command line as BANKAREA(0x8000-0xFFFF).

You must also deduct a little space from the common area for inter-bank function calls to routines in the new code bank (typically 8 bytes per function).

SEE ALSO

Last Reviewed: Friday, August 06, 2004


Did this article provide the answer you needed?
 
Yes
No
Not Sure