answersLogoWhite

0


Best Answer

COMPILER : It is an "INTERPRETER" which takes the instruction from the user(program/any thing) and converts onto the systems language('0' and '1' binary language) for doing calculations according to that instructions and produces the final output to the user in general english. Annapurna. [stated most simply...] A compiler is a program that takes the program-writers' code, called "Source Code", and forms it into a for the computer understands. That said, there are 'programs', more often called scripts or batch code which is human-readable that the computer can use. While scripting languages can be very powerful, they cannot make full use of a computers' abilities. There are many languages that one can use to create a computer program. C+, C++, COBOL, PASCAL, FORTRAN (some old ones there...) Check out this link for more info. http://www.personal.kent.edu/~rmuhamma/Compilers/compiler.html A compiler is a computer program that translates a computer program written in one computer language (called the source language) into an equivalent program written in another computer language (called the output, object, or target language). A compiler is a computer program (or set of programs) that transforms source code written in a computer language (the source language) into another computer language (the target language, often having a binary form known as object code). The most common reason for wanting to transform source code is to create an executable program.

The name "compiler" is primarily used for programs that translate source code from a high-level programming language to a lower level language (e.g., assembly language or machine code). A program that translates from a low level language to a higher level one is a decompiler. A program that translates between high-level languages is usually called a language translator, source to source translator, or language converter. A language rewriter is usually a program that translates the form of expressions without a change of language.

A compiler is likely to perform many or all of the following operations: lexical analysis, preprocessing, parsing, semantic analysis, code generation, and code optimization.

Program faults caused by incorrect compiler behavior can be very difficult to track down and work around and compiler implementors invest a lot of time ensuring the correctness of their software.

The term compiler-compiler is sometimes used to refer to a parser generator, a tool often used to help create a compiler. A compiler is a software tool that takes raw source code and converts (or compiles) it into a machine language ready for linking and loading. The original sequence is usually called the source code and the output called object code. Commonly the output has a form suitable for processing by other programs (e.g., a linker), but it may be a human-readable text file. A compiler does the translation all at once. It produces a complete machine language program that can then be executed. e.g. Java uses a compiler to translate java programs into Java Bytecode, which is a machine language for the imaginary Java Virtual Machine. Although bytecode is similar to machine language, it is not the machine language of any actual computer. Compiled code does the work much more efficiently, because it produces a complete machine language program, which can then be executed. They can spot syntax errors while the program is being compiled (i.e. you are informed of any grammatical errors before you try to run the program). However, this does not mean that a program that compiles correctly is error-free! ANSWER: compiler is a software tool that converts a high level language into a machine level language.

When a programmer writes code, the code is written in text. If might look like this:

my_variable = get_some_input()

my_other_variable = get_some_input()

sum = my_variable + my_other_variable

put_on_screen(sum)

However, a computer cannot understand text or execute it as a program. What a compiler does it compile the text into bytecode, which is binary data that a computer can execute. Compiled languages are programming languages such as C, C++, Java, VisualBasic, etc., that use a compiler

One can also use an interpreter, which is similar to a compiler, except it translates the text as it is run, rather than beforehand. Interpreted languages, such as Ruby, Python, and Perl, are usually more flexible, but are slower because they are translated to machine language as they are run.

User Avatar

Wiki User

โˆ™ 2010-04-10 21:25:04
This answer is:
๐Ÿ™
0
๐Ÿคจ
0
๐Ÿ˜ฎ
0
User Avatar

Add your answer:

Earn +20 pts
Q: What is a compiler?
Write your answer...
Submit
Related questions

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


Why do you need compiler?

we need compiler to run the programme. compiler will check the error in the problem. compiler can check the error with the help of run time compiler. they can be static or dynamically.


What are examples of compiler?

Some examples include Java compiler, C compiler, C# compiler, Pascal compiler, etc. - basically, many different programming languages include compilers.


What are the responsibilities of a compiler?

What are the responsibities of a compiler


What part of speech is compiler?

Compiler is a noun.


What is booting in compiler design?

in compiler des


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.


Are languages and compilers application softwares?

No. A compiler is a system software. An application can be created using a language and a compiler. A language is what you write the software with.No. A compiler is a system software. An application can be created using a language and a compiler. A language is what you write the software with.No. A compiler is a system software. An application can be created using a language and a compiler. A language is what you write the software with.No. A compiler is a system software. An application can be created using a language and a compiler. A language is what you write the software with.No. A compiler is a system software. An application can be created using a language and a compiler. A language is what you write the software with.No. A compiler is a system software. An application can be created using a language and a compiler. A language is what you write the software with.No. A compiler is a system software. An application can be created using a language and a compiler. A language is what you write the software with.No. A compiler is a system software. An application can be created using a language and a compiler. A language is what you write the software with.No. A compiler is a system software. An application can be created using a language and a compiler. A language is what you write the software with.No. A compiler is a system software. An application can be created using a language and a compiler. A language is what you write the software with.No. A compiler is a system software. An application can be created using a language and a compiler. A language is what you write the software with.


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.


PASCAL compiler is written in which language?

Which Pascal compiler do you mean? Pascal compiler can be written in Pascal, of course.


What is the purpose of a Java compiler?

A Java compiler is a compiler for the Java programming language. A compiler translates programs written in the Java language and compiles them into bytecode class files.


What is the difference between a native compiler and a cross compiler?

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.


What are the different types of compilers?

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


How many model of compiler?

combination of interpreter and compiler.


Why is compiler a system software?

Compiler is a application software


Storage mapping is done by compiler or loader?

Compiler


No of pixel in c compiler?

There are no pixels in the C compiler!


Is the script mode is compiler or not?

'The script mode' is not compiler.


What is the purpose of compiler-compilers?

To compile a compiler perhaps?


Merites and demerits of single and multi pass compiler?

single pas compiler is simpler than multipass compiler


What is ddl compiler?

DDL compiler is the compiler whose job is to convert high level commands to low level commands..


What is a dictionary compiler called?

A compiler of dictionaries is called a lexicographer.