ARM Technical Support Knowledge Articles

CALCULATING CODE SPACE FOR BANK SWITCHING

Applies to: C51 C Compiler

Answer


Information in this article applies to:


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

Article last edited on: 2004-08-06 11:35:23

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential