What is cross compiler

cross compiler is a compiler capable of creating executable code for a platform other than the one on which the compiler is running. For example, a compiler that runs on a Windows 7 PC but generates code that runs on Android smartphone is a cross compiler.

A compiler may run on one machine and produce object code for another machine is called cross compiler.

A cross compiler is necessary to compile for multiple platforms from one machine.

Leave a Reply