cross-gcc

cross-gcc is a skill for Claude Code, Codex from mohitmishra786/low-level-dev-skills. It costs 99 tokens per session (1,557 once invoked), scanned B, original, MIT.

A guide to compiling software on one kind of computer so it runs on another, such as building ARM or RISC-V programs on an x86-64 computer.

In plain words
What is it for?
Use it to set up GCC cross-compilers, configure sysroots, build for embedded or multi-architecture devices, use the correct pkg-config files, and test programs with QEMU.
Why use it?
It helps avoid wrong-architecture errors and problems with target libraries, system files, and testing.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to set up GCC cross-compilers, configure sysroots, build for embedded or multi-architecture devices, use the correct pkg-config files, and test programs with QEMU.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mohitmishra786/low-level-dev-skills/cross-gcc
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mohitmishra786/low-level-dev-skills --skill cross-gcc
Clone the repo
git clone --depth 1 https://github.com/mohitmishra786/low-level-dev-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cross-gcc

README.md
[![agentmods](https://agentmods.dev/badge/skills/mohitmishra786/low-level-dev-skills/cross-gcc/github.svg)](https://agentmods.dev/skills/mohitmishra786/low-level-dev-skills/cross-gcc)
Your own site
<a href="https://agentmods.dev/skills/mohitmishra786/low-level-dev-skills/cross-gcc"><img src="https://agentmods.dev/badge/skills/mohitmishra786/low-level-dev-skills/cross-gcc/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cross-gcc

Your own site · 80×15
<a href="https://agentmods.dev/skills/mohitmishra786/low-level-dev-skills/cross-gcc"><img src="https://agentmods.dev/badge/skills/mohitmishra786/low-level-dev-skills/cross-gcc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,557 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 14 Sept 2026
  • Snyk pass 14 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00099 $0.01557
Opus 5.5 $0.00040 $0.00623
Sonnet 5.5 $0.00020 $0.00311
Haiku 4.5 $0.00010 $0.00156

Measured 3mo ago against content hash 256b20a58f9d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

cross-gcc scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo apt install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu binutils-aarch64-linux-gnu
skills/compilers/cross-gcc/SKILL.md · 164 lines

How it starts

The opening of the file, as written. The whole thing — 164 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Cross-GCC

Purpose

Guide agents through setting up and using cross-compilation GCC toolchains: triplets, sysroots, pkg-config, QEMU-based testing, and common failure modes.

Triggers

  • "How do I compile for ARM on my x86 machine?"
  • "I'm getting 'wrong ELF class' or 'cannot execute binary file'"
  • "How do I set up a sysroot for cross-compilation?"
  • "pkg-config returns host libraries in my cross build"
  • "How do I debug a cross-compiled binary with QEMU + GDB?"

Workflow

1. Understand the triplet

A GNU triplet has the form <arch>-<vendor>-<os>-<abi> (often 3 or 4 parts):

Triplet Target
aarch64-linux-gnu 64-bit ARM Linux (glibc)
arm-linux-gnueabihf 32-bit ARM Linux hard-float
arm-none-eabi Bare-metal ARM (no OS)
riscv64-linux-gnu 64-bit RISC-V Linux
x86_64-w64-mingw32 Windows (MinGW) from Linux
mipsel-linux-gnu Little-endian MIPS Linux

2. Install the toolchain

# Debian/Ubuntu
sudo apt install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu binutils-aarch64-linux-gnu

# For bare-metal ARM (Cortex-M)
sudo apt install gcc-arm-none-eabi binutils-arm-none-eabi

# Verify
aarch64-linux-gnu-gcc --version

3. Basic cross-compilation

# C
aarch64-linux-gnu-gcc -O2 -o hello hello.c

# C++
aarch64-linux-gnu-g++ -O2 -std=c++17 -o hello hello.cpp

# Bare-metal (no stdlib, no OS)
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 \
    -ffreestanding -nostdlib -T linker.ld -o firmware.elf startup.s main.c

4. Sysroot

A sysroot is a directory containing the target's headers and libraries. Required when your code links against target-specific libraries.

# Use a sysroot
aarch64-linux-gnu-gcc --sysroot=/path/to/aarch64-sysroot -O2 -o prog main.c

# Common sysroot sources:
# - Raspberry Pi: download from raspbian/raspios
# - Debian multiarch: debootstrap --arch arm64 bullseye /tmp/sysroot
# - Yocto/Buildroot: generated automatically in build output

Read the full file on GitHub · 164 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 164 lines · 99 tokens per session scan B 256b20a58f9d

Subscribe to this mod's changes

cross-gcc is a skill published in the GitHub repository mohitmishra786/low-level-dev-skills (310 stars, last pushed 14d ago), licensed MIT. It adds 99 tokens to every session and 1,557 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

cross-gcc compared with skills from other repositories

cross-gcc next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cross-gccmohitmishra786/low-level-dev-skillsSkill31014d agoMITB99Claude Code, Codex
doca-argpNVIDIA/skillsSkill4.3ktodayApache-2.0A277Claude Code
holoscan-module-lifecycleNVIDIA/skillsSkill4.3ktodayApache-2.0A47Claude Code, Codex
moat-cuda-to-rocmamd/skillsSkill525yesterdayMITA190Claude Code
embedded-stm32Mindrally/skillsSkill3251mo agoApache-2.0A87Claude Code
embedded-firmware-devAmethystLuna/embedded-workbenchSkill372d agoMITA59Claude Code
c-cpp-devXCode-NLP/KodaSkillsSkill2810d agoMITA93Claude Code, Codex