NO

Author Topic: ASM error in arm compiler  (Read 3386 times)

stassaf

  • Guest
ASM error in arm compiler
« on: April 24, 2008, 01:54:23 PM »
Hi.

Can some one help me. I tried to compile my project on new PelleC for pocket pc and had error:

C:\Source\TestPPC\TestPPC.c(671): error #3136: [asm] No immediate rotate value can be created: 2100 (0x834).
fatal error #3148: [asm] Problem resolving references.

Please, if you know, what is it, explain it to me.

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: ASM error in arm compiler
« Reply #1 on: April 24, 2008, 06:01:02 PM »
Have you tried the latest version (version 5.0, beta 4)?

(All ARM instructions are 32 bits, and a number of bits are used for the encoding of the instruction itself and it's registers, so there is a (severe) limit on the constants that may be encoded into a single instruction - often several instructions are needed. The compiler and backend assembler should handle this automagically, but there are -of course- always bugs. It's a messy business.)

If it still doesn't work with the latest version, I need the smallest possible complete source file that triggers this compiler error... thanks.
/Pelle

stassaf

  • Guest
Re: ASM error in arm compiler
« Reply #2 on: April 25, 2008, 10:33:24 AM »
Yes, i`m using latest version and it doesnt help. I noticed that some problem like it can be resolved by adding extra field in structures to make 4 bytes aligment for each elements. I send you example by private message.