IT lexicon › Programming › Target triple

Target triple

Programming På svenska → Updated: 2026-11-07

The architecture–vendor–system–environment string, such as x86_64-pc-linux-gnu, that tells a compiler exactly what it is building for.

The format comes from the GNU world's config.guess and config.sub, which worked out a canonical system name for Autoconf. It's called a triple even though it usually has four parts. LLVM, Rust and Zig inherited it: aarch64-apple-darwin, arm-none-eabi for bare-metal microcontrollers, wasm32-unknown-unknown for the browser.

The last field is the one that bites. It picks the ABI and the C library: x86_64-pc-windows-msvc and x86_64-pc-windows-gnu run on the same machine and the same OS yet can't link against each other's libraries, and gnueabihf passes floats in different registers than gnueabi. The vendor field, by contrast, is nearly always unknown or pc and means roughly nothing.

← Back to the lexicon