ARM Technical Support Knowledge Articles

SUPPORT FOR DEVICES WITH UNDER 2K CODE SPACE

Applies to: C51 C Compiler

Answer


Information in this article applies to:


SYMPTOM

By default, the Cx51 Compiler generates code using LJMP and LCALL instructions for jumps and calls. Numerous devices are available that do not support these instructions. For these devices, the AJMP and ACALL instructions must be used instead of the LJMP and LCALL instructions.

RESOLUTION

The Cx51 Compiler provides the ROM directive which allows you to control which jump and call instructions are used.

Note that the evaluation version of the tools impose a restriction on where code is located. For that reason, you cannot use the evaluation tools to program devices with under 2K of code memory. Of course, the licensed tools can be used to program such devices.

MORE INFORMATION

SEE ALSO

Article last edited on: 2006-08-21 13:28:46

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