这里介绍几个常用的几个与arm相关的GCC命令行参数。完整的描述参见GCC在线文档:http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html
-march=name, 指定目标的处理器构架,例如armv7-a, armv8-a等,参考gcc/config/arm/arm-arches.def。
-mcpu=name, 指定目标处理器,这是具体的处理器型号,例如cortex-a9,参考gcc/config/arm/arm-cores.def。
-mtune…