• -print-libgcc-file-name gives thumb while -marm is used
    Dear Forum, Using ~$ arm-none-eabi-gcc -v Using built-in specs. COLLECT_GCC=arm-none-eabi-gcc COLLECT_LTO_WRAPPER=/opt/gcc-arm-none-eabi/bin/../libexec/gcc/arm-none-eabi/9.2.1/lto-wrapper Target...
  • 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 ...
  • From the CPU's point of view, how does it distinguish an assembly code is an ARM code or a Thumb code?
    From the CPU's point of view, how does it distinguish an assembly code is an ARM code or a Thumb code? Is there some signal bit represent the code is ARM or Thumb code, this is just my guess.
  • [Cortex-M0] Thumb mode & code size
    Hi, I'm somewhat confused with the Thumb mode code size.  My understanding is compiling with ARM mode will generate 32-bit instructions and compiling with Thumb mode will generate 16-bit instructions...
  • ARM/Thumb-2
    Hello everyone, First of all, I'm new when it comes to ARM assembly. I actually have some pieces of code written for ARM instruction set, but my target is a Cortex-M4 architecture using Thumb-2 instruction...