Keil™, An ARM® Company

Technical Support

LARM: L138 ERROR USING OPERAND ARITHMETIC IN AN ARRAY INDEX


Information in this article applies to:

  • LARM Version 1.3 and Earlier

SYMPTOM

Indexing an array with an arithmetic expression sometimes results in the following ARM linker error:

*** ERROR L138: CODE GENERATION: PROBLEM WHEN PROCESSING INSTRUCTIONS

CAUSE

Using a constant - variable expression for an array index can cause this error with early versions of the Keil ARM Linker.

RESOLUTION

This problem is corrected in the CARM V1.4 (and later) update. For DKARM versions 1.3 and earlier, you may download the latest updates from the CARM Product Updates on the Keil Website.

FORUM THREADS

The following Discussion Forum threads may provide information related to this topic.

Last Reviewed: Thursday, January 18, 2007


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