'Does the the 'linux' version of arm gcc compiler support -cpu=cortex-m4?
I am using aarch64-none-linux-gnu-gcc for compiling the applications on my Ubuntu 20.04. It has support for cortex-a and few other processor cores. But not on cortex-m4 (or cores which use armv7. Can anyone recommend or provide a link to the compiler installer which supports cortex-m4?
Solution 1:[1]
The compiler for 32-bit ARM on Ubuntu is arm-linux-gnueabihf-gcc
or arm-none-eabi-gcc
, roughly according to whether you want to compile code to run on a Linux OS or on bare metal. Look for the packages gcc-arm-linux-gnueabihf
or gcc-arm-none-eabi
.
The aarch64
compilers only support 64-bit ARM.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Nate Eldredge |