byte or halfword not valid for base register

Login to reply to this topic.
Mon, 2005-04-18 14:37
Joined: 2005-02-21
Forum posts: 47
I get the above error when compiling for THUMB (as always - it started just out from nowhere ... I compiled mu project for thumb several times before).

--------------
Warning: <at some temp file>Assembler messages:
Error: Error: byte or halfword not valid for base register
   unknown file line 1821
Error: compile failed
--------------

Knowing somewhat what it means, I still don't know exactly what should I look for from my code or from linker(compiler) settings.
Any glues?

Ahti.

Tue, 2005-04-19 11:00
Joined: 2005-02-21
Forum posts: 47
byte or halfword not valid for base register
Okey, if anyone of you hits the same problem - it is a reported problem of the gcc provided with SDK and it is supposedly fixed in newer gcc's. But as long as it is difficult to change gcc - play with your code to get rid of the invalid ASM generation. For me it was enough to change the order of some members of one class. Nice.
  • Login to reply to this topic.