Details Of Cross-Compiling
A cross-compile toolchain exists of a set of tools: a compiler, linker, assembler, debugger and a C library. A cross-compile toolchain runs on your host system and creates native binaries for your target system. A cross-compile toolchain is basically created in six steps:
Get and prepare the Kernel and C library headers of your target system
Compile the binutils package for your target
Compile a static C compiler for your target
Compile and install a C library for your target
Compile and install a full C/C++ compiler
Compile and install the GNU debugger