How do I get the compiler to generate Thumb-2 instructions?
Question
How do I get the compiler to generate Thumb-2 instructions?Answer
Use the options -march=armv6t2 -mthumb
. The compiler will then assume that
your target hardware has Thumb-2 support and will generate appropriate code.
This entry was last updated on 8 March 2013.