answersLogoWhite

0

What is cross compiler?

Updated: 10/19/2022
User Avatar

Wiki User

10y ago

Best Answer

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.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is 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 the difference between a native compiler and a cross compiler?

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.


What are the difference between a compiler design and a compiler?

In Compiler there is no design word ,whereas in compiler design there is design word


What are the responsibilities of a compiler?

What are the responsibities of a compiler

Related questions

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 the difference between a native compiler and a cross compiler?

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.


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.


What is DML Compiler?

What is difference between Compiler and DML Compiler


What are the difference between a compiler design and a compiler?

In Compiler there is no design word ,whereas in compiler design there is design word


What are the responsibilities of a compiler?

What are the responsibities of a compiler


When using CodeBlocks IDE for Linux how do you compile the program you are writing as an EXE?

CodeBlocks is an extensible, cross-platform IDE but it does not come with a compiler nor a linker since they are platform-specific. When you first run the IDE, it will scan your system for all supported compilers and integrate them into your IDE If you have more than one supported compiler, then you must choose the master compiler. But if you have no compiler, then you must add one. To build an EXE you must configure the project's compiler and linker switches according to your chosen compiler. Consult the compiler's own documentation for more information on this.


It is possible to build a C compiler on top of a C compiler?

It is possible to build a C compiler on top of a C compiler. From the directory, run the shell script.


Why you call as cousins of compiler?

"Cousins" of the compiler are those things related to the compiler, and may or may not be part of the compiler. This includes: preprocessors, assemblers, linkers, and interpreters.


Whether MS VC is one pass compiler or multi pass compiler?

one pass compiler


What is 16 bit compiler?

Quite simply, a 16-bit compiler is a compiler for a 16-bit machine.