ASM error in arm compiler

Started by stassaf, April 24, 2008, 01:54:23 PM

Previous topic - Next topic

stassaf

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.

Pelle

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

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.