How does a cross compiler works? | SoloLearn: Learn to code for FREE!

+3

How does a cross compiler works?

The compiler capable of creating an executable code for a platform other than the one on which the compiler is running is called cross compiler.

2/27/2018 4:34:54 PM

Pranjal_4u

1 Answer

New Answer

+4

It works in exactly the same way as a native compiler, one which generates an executable for its own system, the only difference is the code is generated in a format for the target system. It is the back end of the compiler that does the actual code generation. See https://en.m.wikipedia.org/wiki/Compiler for more information.