ARM Technical Support Knowledge Articles

FIXPEC DIRECTIVE

Applies to: C166 C Compiler

Answer


Information in this article applies to:


SYMPTOMS

When using Optimizer Level 7, the C166 Compiler may generate JMPs to functions instead of CALLs. If the first instruction in the function is a JMP, you may encounter a chip problem (on some devices) with the PEC. This is because the Optimizer creates a JMP to a JMP.

Be sure to read the errata sheets for your part to learn if the chip you use has this problem.

RESOLUTION

Use the FIXPEC directive to avoid this potential problem and to ensure that a JMP instruction is never used at the beginning of a function.

SEE ALSO

Article last edited on: 2000-09-07 00:00:00

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