answersLogoWhite

0

What a compiler is?

User Avatar

Wiki User

βˆ™ 2017-05-30 12:47:15

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:
User Avatar
Study guides

What is a programming language

What does DOS stand for

What is a software that is distributed for free

What do unix and Linux have in common

➑️
See all cards
3.95
β˜†β˜…β˜†β˜…β˜†β˜…β˜†β˜…β˜†β˜…
61 Reviews
More answers
User Avatar

Wiki User

βˆ™ 2010-03-20 01:08:25

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
People also asked