-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Description
Command description
arm-none-eabi-gcc is a widely used cross-compiler based on GCC, targeting bare-metal ARM Cortex-M/R microcontrollers (e.g., STM32, NXP, etc.). It is a core tool in embedded systems development, enabling compilation of C/C++ code for devices without an operating system.
This tool is:
A natural extension of gcc for embedded targets.
Part of the official GNU Arm Embedded Toolchain.
Commonly used on both Linux and Windows in bare-metal development workflows.
Adding a tldr page for arm-none-eabi-gcc would benefit:
Embedded developers looking for a quick reference.
Users unfamiliar with the subtle differences from standard gcc.
Students or beginners working with microcontrollers and FreeRTOS.
The page would follow the same philosophy as existing pages for gcc, keeping it minimal but contextualized for embedded targets.
Documentation
Platform
Common
VCS repository link (e.g. GitHub, GitLab)
No response
Additional information
No response
Commands
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb file.c -o output.elf
arm-none-eabi-gcc -g -O0 -mcpu=cortex-m0 -mthumb main.c -o main.elf
These are just sample commands