IT lexicon › Programming › Cross-compilation

Cross-compilation

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

Compiling code on one machine to run on a completely different architecture or operating system.

A typical scenario: you develop on a modern x86 workstation but must produce ARM code for an embedded device or mobile phone. The compiler understands the target architecture but runs on the host. Especially crucial for embedded systems, IoT, and when the target device is too slow to serve as a development machine. Autotools and makefiles support cross-compilation via flags like `--host` and `--target`.

← Back to the lexicon