I have a GCC compiler for GBA. Can I generate ARM or Thumb using a command line option?
This depends on the version of GCC that you have. Up until mid-year 2000, GCC had to be built to support ARM or Thumb mode. You could not support both in the same compiler. Around mid-year 2000, ARM contributed a new backend to the GCC project that allowed one compiler build to support many of the ARM platforms including ARM & Thumb. Type the following from a DOS prompt: gcc -dumpmachine If it reports “arm-thumb-elf” and it is v3.0 or later then it supports both. If it reports “thumb-elf” or “arm-elf” then it only supports one mode.