Thumb state to Arm state via C | developer.brewmp.com Thumb state to Arm state via C | developer.brewmp.com

Developer

Thumb state to Arm state via C

Forums:

Hi,
I am trying to execute a mod compiled in using thumb but it crashes as soon as I call one particular function which actually belongs to an extension IMICRO3D (Brew 3.x). But when I compile the code using arm compiler and execute it runs perfectly. So I was wondering whether its possible to switch the processor in arm state before calling that particular function and again come back to thumb after the call is over. Is it possible to write arm asm in C ?

regards
Pradip.B