Compiling to ARM I get “Error: attempt to use an ARM instruction on a Thumb-only processor”
问题 The following command /usr/bin/arm-linux-gnueabihf-gcc -O3 -DNDEBUG -march=armv7-a -mfloat-abi=hard -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables -fno-stack-protector -fvisibility=hidden -fvisibility-inlines-hidden -fno-function-sections -fno-lto -g -Wno-variadic-macros -Wno-non-virtual-dtor -o testAsm.S.o -c testAsm.S On the following assembly file testAsm.S : .syntax unified .arch armv7 .fpu vfpv3 .code 32 .global _functionPointer .p2align 2 .global _asmFunction