This walks you through cross-compiling with GCC for embedded and multi-architecture targets. You get practical guidance on toolchain setup, triplets (aarch64-linux-gnu, arm-none-eabi, etc.), configuring sysroots, and fixing pkg-config so it stops returning host libraries during cross builds. It covers CMake toolchain files, QEMU-based testing with GDB remote debugging, and common failure modes like wrong ELF class errors. The reference tables for triplets and error messages are genuinely helpful when you're staring at a linker error at 2am. If you're building for ARM, RISC-V, or MIPS from an x86 host, or integrating with Yocto and Buildroot, this gives you the essentials without the usual cross-compilation folklore.
npx skills add https://github.com/mohitmishra786/low-level-dev-skills --skill cross-gcc