• Is Thumb to ARM mode overhead
    Hi all, Consider high priority routines are executing in ARM mode and low priority in Thumb mode. There could be constant switching between ARM and THUMB mode. In this inter-working model is there any...
  • Difference between thumb machine directives
    Hi Experts, What is the key difference between the following directives .thumb .thumb_func .force_thumb .thumb_set What is the exact use case where the above things can to be applied ? Regards, Techguyz...
  • Question about a code snippet on ARM, Thumb state change
    Hi, I find the following code snippet online on ARM state change. Although that whole material looks solid, the second line in the blue code below is puzzling. add R1,PC,#1 ;Load address of SUB_BRANCH...
  • gcc does not generate correct code while building PIC
    Hey guys, I have been exploring building PIC using the gcc toolchain and I think there is a bug. I first build a shared library using arm-none-eabi-gcc -shared -mcpu=cortex-m4 -mthumb -Wall -g ...
  • ELF entry point in thumb mode (armv7/aarch32)
    Hi ! We are writing an OS targeting 32 bits ARM platform, where binaries can be compiled in ARM or in Thumb mode. At the moment, to execute a new process, I load the info from an ELF, set lr_usr to the...