Skip to content

Let's document: ARM GCC cross compiler #17390

@Vasanth2896

Description

@Vasanth2896

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedYou can help make tldr-pages better!let's documentTracker issue to document multiple subcommands/commands of a tool or utility or category.new commandIssues requesting creation of a new page or PRs adding a new page for a command.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions