Native Vs Cross Compiler

Hello ,
How are you guys?? Hope all are safe and staying at home.

So here's i came up with new blog on Native Vs Cross Compiler.
Lets get started.

First of all what is compiler , 

Compiler is the special program which converts your C/C++ code into some binary files or machine under-standable code.

Machine understandable code is something which can understand by computer to do operations as per our instruction written in C or C++ code.



So Now Lets talk about the two types of compiler : Native and Cross Compiler.

Native Compiler

        This Compiler will generate machine understandable code or binary code for the same environment on which it working or run.

For example Turbo C or GCC compiler.

It will generate .exe file as a output file or Executable file.

Executable code is a code which cannot be run without operating system. 

Cross Compiler:

        This Compiler will generate machine understandable code or binary code for the different environment on which it working or run.

It is used to build code for the other systems like AVR , ARM or arduino.

It will generate Raw code or .Hex file as output file which we can burn/download with some software into the other systems.

Raw code is a code which can run without operating system.


Hope you guys have liked it.
Please Like share and subscribe my blogs , I will come up with new blogs with new ideas.

Thank you😊.

Comments