answersLogoWhite
Computer Terminology
Computer Programming
C Programming
C++ Programming

What is a compiler?

939495

Top Answer
User Avatar
Wiki User
2010-04-10 21:25:04
2010-04-10 21:25:04

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.

12

Related Questions

User Avatar

What is difference between Compiler and DML Compiler

User Avatar

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

User Avatar

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

User Avatar

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.

User Avatar

What are the responsibities of a compiler

User Avatar

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

User Avatar

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.

User Avatar

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

User Avatar

"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.

User Avatar

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

User Avatar

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

User Avatar

There are no pixels in the C compiler!

User Avatar

Compiler is a application software

User Avatar

'The script mode' is not compiler.

User Avatar

combination of interpreter and compiler.

User Avatar

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.

User Avatar

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.

User Avatar

single pas compiler is simpler than multipass compiler

User Avatar

The JIT compiler improves the speed.The JIT compiler improves the speed.The JIT compiler improves the speed.The JIT compiler improves the speed.

User Avatar

A compiler of dictionaries is called a lexicographer.

User Avatar

javac -- compiler java -- interpreter

User Avatar

no jvm is not a part of java compiler

User Avatar

To compile a compiler perhaps?

User Avatar

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

User Avatar

An optimization is what is compiled by an optimization compiler. An optimization compiler compiles optimizations. You're welcome.


Copyright © 2020 Multiply Media, LLC. All Rights Reserved. The material on this site can not be reproduced, distributed, transmitted, cached or otherwise used, except with prior written permission of Multiply.