Atollic cmd程序集未正确配置

时间:2014-09-23 10:16:01

标签: assembly cmd arm

我正在尝试使用此命令为CMD中的ARM处理器组装文件:

as -mcpu=cortex-m3 -mthumb example1.s -o example1.o

但它没有认识到第一个选项:-mcpu

我认为这与我输入时的事实有关:as --version 最后一行说:

This assembler was configured for a target of 'mingw32'

应该说:

This assembler was configured for a target of 'arm-none-eabi'

我该如何解决这个问题?

1 个答案:

答案 0 :(得分:1)

汇编程序的完整命令应该是 arm-none-eabi-as。只需as将调用主机汇编程序,您似乎就在Windows框中。尝试运行arm-none-eabi-as --version