Tom Jose
Tom Jose

Reputation: 33

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?

Upvotes: 0

Views: 1190

Answers (1)

Nate Eldredge
Nate Eldredge

Reputation: 57922

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.

Upvotes: 2

Related Questions