tags:

views:

103

answers:

3

what is cross compilation?

+10  A: 

Cross-compilation is the act of compiling code for one computer system (often known as the target) on a different system, called the host.

It's a very useful technique, for instance when the target system is too small to host the compiler and all relevant files.

Common examples include many embedded systems, but also typical game consoles.

unwind
oh..so u compile code on one system..and deploy the executable in another system?
The "mandatory" wikipedia link: http://en.wikipedia.org/wiki/Cross_compilation
FeatureCreep
Yes. And the systems have different architectures.
Stephan202
Most smart phones use cross-compilation to the ARM architecture.
workmad3
A: 

In a strict sense, it is the compilation of code on one host that is intended to run on another.

Most commonly it is used with reference to compilation for architectures that are not binary-compatible with the host -- for instance, building RISC binaries on a CISC CPU platform, or 64-bit binaries on a 32-bit system. Or, for example, building firmware intended to run on embedded devices (perhaps using the ARM CPU architecture) on Intel PC-based OSs.

Alex Balashov
A: 
toolkit