You copied the Doc URL to your clipboard.

#pragma arm

This pragma switches code generation to the ARM instruction set. It overrides the --thumb compiler option.


Use #pragma push and #pragma pop on #pragma arm or #pragma thumb outside of functions, but not inside of them, to change state. This is because #pragma arm and #pragma thumb only apply at the function level. Instead, put them around the function definition.