answersLogoWhite

0

What a compiler is?

Updated: 12/7/2022
User Avatar

Wiki User

6y ago

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

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

Wiki User

14y ago

I think, I'm not really sure, but I think that it is a series of compiles.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What a compiler is?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How many types of compiler naming in list?

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


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


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.


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.


PASCAL compiler is written in which language?

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


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.


How many model of compiler?

combination of interpreter and compiler.