
Build Embedded Ada With Alire and the GNAT ARM Toolchain
Install Alire, select the gnat_arm_elf toolchain, create a crate, add a board support crate and run alr build to produce an ARM Cortex-M firmware ELF.
GCC, LLVM and Clang, the ARM GNU toolchain, linkers and linker scripts, ELF, cross-compiling, Make, CMake, Meson and Bazel, and writing a compiler of your own.

Install Alire, select the gnat_arm_elf toolchain, create a crate, add a board support crate and run alr build to produce an ARM Cortex-M firmware ELF.

Write a build.zig that targets thumb-freestanding for a Cortex-M4, add a linker script and vector table, and produce a flashable ELF and binary with Zig 0.14.

Write two GNU linker scripts that share one flash layout file, split flash between bootloader and application, and fail the build when either region overflows.

Run individual LLVM passes such as mem2reg and instcombine on IR with opt, build a pipeline, list the passes and print what each pass changed.

Configure clang-format with a .clang-format file, format files and diffs, and fail CI on unformatted code so style discussions end before review.

Write LLVM IR from C with clang -S -emit-llvm, then read types, basic blocks, loads, stores, phi nodes and calls well enough to check what the compiler did.

Set up clangd for go-to-definition, completion and live diagnostics in VS Code, Neovim or any editor, using a compile_commands.json from your build.
Why GDB shows optimized out and jumps lines at -O2, how GCC -Og and variable tracking keep more values, and what to do when you must debug the real build.

Install Clang on Linux, macOS or Windows, point Make, CMake or Meson at it, and fix the handful of warnings and flags that differ from GCC.

Follow one C function through Clang, LLVM IR, the optimizer and the code generator, and see what each stage produces and which tool lets you run it alone.

An assembly file without a .note.GNU-stack section makes the linker mark the whole program's stack executable. Add the section or pass -z noexecstack.

Replace GNU attribute spellings with standard [[nodiscard]], [[maybe_unused]], [[deprecated]] and [[fallthrough]] in C23 and C++17, and see what GCC reports.
We send one email when a new post is published. No spam.