I want to change the behavior of the ARM toolchain arm-linux-gnueabi-gcc
in my Linux machine, that the compiled code will be in Thumb
mode as default - same as passing the -mthumb
flag.
I came across this document, which under the section of --with-mode
describes exactly what I try to achieve. However, I couldn't understand from their explanation how can I actually set this option.
Can anyone clarify this for me, or suggest another way to achieve my goal?