answersLogoWhite

0


Best Answer

A native compiler is one that compiles programs for the same architecture or operating system that it is running on. For instance, a compiler running on an x86 processor and creating x86 binaries. A cross-compiler is one that compiles binaries for architectures other than its own, such as compiling SPARC binaries on a PowerPC processor.
A cross compiler executes in one environment and generates code for another. A "native compiler" generates code for its own execution environment. For example, Microsoft Visual Studio includes a native compiler. It is used on the Windows platform to create applications that are run on the windows platform. A cross compiler could also execute on the Windows operating system, but possibly generate code aimed at a different platform. Many embedded devices, such as mobile phones or wasching machines, are programed in such way. Compilers generating cross-platform hyper code such as compilers for Java or any of the .NET languages fall somewhere in between these two basic compiler categories. Their nature depends on the exact use-case, and the angle under which you look at those when categorizing.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

You have to use cross platform compiler when you want to run your programs also under other operating systems. For instance, if you have windows xp and you are using cross compiler you will able to run your program also under Linux operating systems (depends on which options your cross compiler supports).

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

The computer doesn't directly understand the source code; it understands machine code. The compiler's role is to translate the source code (readable by humans) into machine code (readable by the CPU).

The computer doesn't directly understand the source code; it understands machine code. The compiler's role is to translate the source code (readable by humans) into machine code (readable by the CPU).

The computer doesn't directly understand the source code; it understands machine code. The compiler's role is to translate the source code (readable by humans) into machine code (readable by the CPU).

The computer doesn't directly understand the source code; it understands machine code. The compiler's role is to translate the source code (readable by humans) into machine code (readable by the CPU).

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

A C compiler is a program that turns source code written in the C Programming language into machine code.

A cross-compiler is any compiler (C or another language) that compiles code in a format used on another operating system or processor.

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

The computer doesn't directly understand the source code; it understands machine code. The compiler's role is to translate the source code (readable by humans) into machine code (readable by the CPU).

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

A compiler which runs on the computer for which it is producing machine code in contrast to a cross compiler, which produces code for different computers.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between a native compiler and a cross compiler?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How many types of compiler naming in list?

cross compiler . hybird compiler . post compiler. ideal compiler. intelligence compiler.


What are the four types of grammars used in compiler?

-Single pass compiler -Multi pass compiler -Cross compiler -Optimizing compiler


What is cross compiler?

A cross-platform compiler can compile applications for multiple platforms, such as Windows, Linux, and Mac. An open-source cross-platform compiler is GCC (the GNU C Compiler). A cross-platform compiler uses a language that can be compiled on to multiple targets, such as C, C++, or haxe. It is required to compile the same source code multiple times, one for each target platform; a program such as make can be used to reduce the number of commands the user actually executes to just a single command.


What is the difference between cross hairs and stadia hairs?

cross hair cross each other but stadia hair do not cross each other


What is the Difference between an assembler and cross assembler?

The assembly part of a compiler is at the back end of the build process. A build process takes instructions from a programming language and converts them into machine instructions. When you need to make machine instructions for a machine that is different than the type you are programming on you need a cross compiler. For instance, if you have a PC with an Intel X86 and you want machine instructions for an Xbox with a PowerPC inside then you would need to cross compile. You could take some intermediate output from your compilation process on the PC and use a cross assembler to make PowerPC instructions. Thus you would be using a cross assembler.

Related questions

Technical difference between native code and cross compiler?

Native code is simply machine-dependent code (machine code). It is the only language "understood" by the machine, however the code is non-portable; the code will only execute correctly upon the platform (the architecture and operating system) for which it was specifically intended. A cross-compiler is a compiler which is capable of producing machine code for machines other than (or in addition to) the one upon which the compiler is executing. This is useful for creating software for systems which cannot be programmed directly, such as SmartPhones. Instead, the software is developed on another system (such as a PC or Mac) and compiled with a cross-compiler. A compiler is simply a software program which converts high-level code into a lower-level code. The lower-level code is typically native machine code but there are exceptions. For example, the Java compiler compiles to Java byte code which is suitable for interpretation by any Java virtual machine implementation. There are also compilers that can convert C++ to C. However, it is not possible to increase the amount of abstraction using a compiler -- this can only be done manually.


How many types of compiler naming in list?

cross compiler . hybird compiler . post compiler. ideal compiler. intelligence compiler.


What are the difference between clustering and cross enrollment?

what are the difference between clustering and cross enrollment


Difference between cross section and block diagram?

difference between cross section and block daigram


What are the four types of grammars used in compiler?

-Single pass compiler -Multi pass compiler -Cross compiler -Optimizing compiler


What is the difference between cross sectional and cross sequential?

Cross-sectional design involves studying different groups of individuals at a single point in time, whereas cross-sequential design combines both cross-sectional and longitudinal elements by studying different age groups over a period of time. Cross-sectional design allows for quick and easy comparisons between different age groups, while cross-sequential design allows researchers to track the same individuals as they age.


What is the difference between a cross offer and counter offer?

the difference between offer and counteroffer


What is cross compiler?

A cross-platform compiler can compile applications for multiple platforms, such as Windows, Linux, and Mac. An open-source cross-platform compiler is GCC (the GNU C Compiler). A cross-platform compiler uses a language that can be compiled on to multiple targets, such as C, C++, or haxe. It is required to compile the same source code multiple times, one for each target platform; a program such as make can be used to reduce the number of commands the user actually executes to just a single command.


What is the difference between cross hairs and stadia hairs?

cross hair cross each other but stadia hair do not cross each other


What is the difference between track and cross country?

Track is running in circles and cross country is just running.


What is the difference between a test cross and a back cross in genetic?

a test cross is the cross made between the progeny and the recessive parent,whereas the back cross means crossing of progeny with either dominant or recesive parent.


What is the difference between cross filing an draw filing?

something to do with something