arm-none-eabi-gcc unrecognized option '-mcpu=cortex-a5'
时间: 2024-06-06 18:08:40 浏览: 260
This error message indicates that the compiler you are using (arm-none-eabi-gcc) does not recognize the option "-mcpu=cortex-a5". This could be because the option is not supported by the version of the compiler you are using, or because the compiler is not configured to support the Cortex-A5 architecture.
To resolve this issue, you can try updating your compiler to a version that supports the Cortex-A5 architecture, or you can configure your existing compiler to support it. You may need to consult the documentation for your compiler to determine the correct configuration options.
相关问题
arm-none-eabi-gcc.exe:arm-none-eabi-gcc.exe: fatal error: fatal error: no input files
这个错误提示意味着没有给GCC编译器提供任何输入文件。请检查你的命令行,确保你已经指定了要编译的源代码文件。例如,如果你的源代码文件名为main.c,你可以使用以下命令来编译它:
```
arm-none-eabi-gcc -o main.elf main.c
```
其中,`-o main.elf`指定输出文件名为main.elf,而`main.c`则是要编译的源代码文件名。如果你的命令行中没有指定源代码文件名,则会出现上述错误提示。
arm-none-eabi-gcc和arm-none-eabi-ld有什么区别?
arm-none-eabi-gcc和arm-none-eabi-ld都是gcc-arm-none-eabi工具链中的工具,但它们的作用不同。
arm-none-eabi-gcc是编译器,用于将C/C++源代码编译成汇编代码或目标文件。它还可以将多个目标文件链接成一个可执行文件。
arm-none-eabi-ld是链接器,用于将多个目标文件链接成一个可执行文件。它还可以将可执行文件链接成一个静态库或动态库。
在使用gcc-arm-none-eabi工具链时,通常需要先使用arm-none-eabi-gcc将C/C++源代码编译成目标文件,然后使用arm-none-eabi-ld将多个目标文件链接成一个可执行文件。
阅读全文