tldr-pages/tldr

Let's document: ARM GCC cross compiler

Opened this issue · 0 comments

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

https://www.google.com/url?sa=t&source=web&rct=j&opi=89978449&url=https://documentation-service.arm.com/static/5f04c4dcdbdee951c1cdcd41%3Ftoken%3D&ved=2ahUKEwjYsfjvwt2OAxW7xTgGHXaIOS8QFnoECBcQAQ&usg=AOvVaw0-2LuQLHRft0RGvnTtsMZj

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