How to compile for ARM with GCC on a x86 Linux.

Other operating systems
Post Reply
Administrator
Site Admin
Posts: 81
Joined: 26-Feb-2014, 17:54

How to compile for ARM with GCC on a x86 Linux.

Post by Administrator » 01-Feb-2024, 22:01

To build applications for ARM processors (Cortex-A) on a x86 Linux machine one should install cross-compiler version of GCC.
sudo apt-get install gcc-arm-linux-gnueabi
VSCode-GCC-ARM.png
VSCode-GCC-ARM.png (14.86 KiB) Viewed 1485 times
For Cortex-M and Cortex-R use:
sudo apt-get install gcc-arm-none-gnueabi

Post Reply