Pelles C forum

C language => Pocket PC and Smartphone questions => Topic started by: stassaf on April 24, 2008, 01:54:23 PM

Title: ASM error in arm compiler
Post by: stassaf 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.
Title: Re: ASM error in arm compiler
Post by: Pelle 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.
Title: Re: ASM error in arm compiler
Post by: stassaf 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.