answersLogoWhite

0

What is the role of a compiler?

Updated: 8/10/2023
User Avatar

Silybo

Lvl 1
13y ago

Best Answer

The compiler converts source code (the stuff the programmer wrote and is human readable) and converts it to machine code that the computers CPU can understand. The conversion is used to make an executable program.

The compiler can also make libraries but libraries are not executable by them selves.

User Avatar

Wiki User

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

Wiki User

13y ago

1.Lexical analysis

2.Syntactic analysis

3.Semantic analysis

4.Intermediate code generation

5.Register allocation

6.Machine code generation

7.Assembly and Linking

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

A compiler is used to convert a program in source code (the human-readable form, written by a program) to the equivalent in machine language (which is much more difficult to understand for humans).

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

Compiler is basically a translator from a specific programming language into machine understandable language.

For more information refer to http://en.wikipedia.org/wiki/Compiler.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the role of a compiler?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is role of compiler?

It coverts your source code into machine code so the computer can execute it.


What is the role of data structure in compiler design?

The role of the data structure in compiler designer is to take an input of a program written in another language and produce an output in another language. It also performs error detection.


How many types of compiler naming in list?

cross compiler . hybird compiler . post compiler. ideal compiler. intelligence 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 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.

Related questions

What is role of compiler?

It coverts your source code into machine code so the computer can execute it.


What is the role of the JIT compiler in NET Framework?

JIT compiler is responsible for compiling the code before execution. And there are many types.


What is compiler hints?

compiler hints is a assurance to detecter of the result path.it creates a role of identifier to check the program when the program is executing.


What is the role of data structure in compiler design?

The role of the data structure in compiler designer is to take an input of a program written in another language and produce an output in another language. It also performs error detection.


How many types of compiler naming in list?

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


The role of automata theory in compiler construction?

Lexical analysis is the first state of the Compiler design, in this state human typed programs are broken in to tokens and then those tokens are recognized through the Automata theory. For more details please refer the book, Modern Compiler designing in C


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 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 responsibilities of a compiler?

What are the responsibities of a compiler


What are the four types of grammars used in compiler?

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


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.