[fpc-devel] More on arm4, armi and thumb

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Thu Nov 1 13:00:45 CET 2007


On 11/1/07, Marco van de Voort <marcov at stack.nl> wrote:
> It seems that when you branch, in the instruction you can encode if the
>  instructionset of the target is thumb or not.

So, currently fpc set's all branches to use arm4 mode

And C++ apps compiled could check what the system is using and use a
if to either call in arm4 or call in thumb mode. The strange thing is
that this is a bit arbitrary. There is nothing special about an OS
call, it's just a call like any other. I wonder where does the
compiler get the information of if the function is in arm4 or thumb
mode.

> If you want more stuff looked up, yell.

thanks

-- 
Felipe Monteiro de Carvalho



More information about the fpc-devel mailing list