Item 6: Cross-Compiling

Cross-compilation occurs when the build system (the system on which the binaries are built) and the host system (the system on which those binaries are meant to be executed) are not of the same types. For example, we're cross-compiling when we build Motorola 68000 binaries for an embedded system on a typical Intel x86 platform such as GNU/Linux, or when we build Sparc binaries on a DEC Alpha system. A far more common scenario is using your Linux system to build software designed to run on an embedded microprocessor.

The situation becomes even more complex if the software you're building, such as a compiler or linker, can generate software. In this case, the target system represents the system for which your compiler or linker ...

Get Autotools now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.