• -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...
  • Reorganising C code to be optimal for Thumb-1 (Cortex M0+) Instruction-Set
    I have spent the last few months re-re-re-rewriting the DCT32 portion of my fixed-point MP3 decoder in a manner that avoids the need to use a stack-frame. I'm still not QUITE there but I think it is interesting...