ARM mode Thumb mode switching

Note: This was originally posted on 13th January 2011 at http://forums.arm.com

Hi,

Let me explain my problem,
i come across one situation

cmp r1,#0
beq labels_of1

i would like to merge both the instructions in to one. for that i would like to use cbz (thumb instruction)

but my compiler shows an error message that this particular instruction not present in the Instruction.

Since the instruction is cbz the compilation should be in thum mode. how can i modify my make file and how can i switch the mode from ARM to thumb for execute the optimized instruction.

please let me know the mode change needs any extra cycle.


Rgds
Dave
Parents Reply Children
No data
More questions in this forum