Keil™, An ARM® Company

Technical Support

C166: FIXPEC DIRECTIVE


Information in this article applies to:

  • C166 Version 4.06

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

Last Reviewed: Thursday, September 07, 2000


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