what is the difference between compiler and interpreter?
give any one example (software product) that act as a
interpreter?
Answer Posted / deependra kushwaha
Compiler
A compiler is defined as a computer program that is used to
convert high level instructions or language into a form that
can be understood by the computer. Since computer can
understand only in binary numbers so a compiler is used to
fill the gap otherwise it would have been difficult for a
human to find info in the 0 and 1 form.
Earlier the compilers were simple programs which were used
to convert symbols into bits. The programs were also very
simple and they contained a series of steps translated by
hand into the data. However, this was a very time consuming
process. So, some parts were programmed or automated. This
formed the first compiler.
More sophisticated compliers are created using the simpler
ones. With every new version, more rules added to it and a
more natural language environment is created for the human
programmer. The complier programs are evolving in this way
which improves their ease of use.
There are specific compliers for certain specific languages
or tasks. Compliers can be multiple or multistage pass. The
first pass can convert the high level language into a
language that is closer to computer language. Then the
further passes can convert it into final stage for the
purpose of execution.
Interpreter
The programs created in high level languages can be executed
by using two different ways. The first one is the use of
compiler and the other method is to use an interpreter. High
level instruction or language is converted into intermediate
from by an interpreter. The advantage of using an
interpreter is that the high level instruction does not goes
through compilation stage which can be a time consuming
method. So, by using an interpreter, the high level program
is executed directly. That is the reason why some
programmers use interpreters while making small sections as
this saves time.
Almost all high level programming languages have compilers
and interpreters. But some languages like LISP and BASIC are
designed in such a way that the programs made using them are
executed by an interpreter.
Read more:
http://www.differencebetween.com/difference-between-compiler-and-vs-interpreter/#ixzz1c0wkx8B1
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Can you execute macro within another macro? : sas-macro
what do the sas log messages "numeric values have been converted to character" mean? : Sas programming
name the scheduler for scheduling job and explain the scheduler? : Sas-di
Mention what is PROC in SAS?
how to do user inputs and command line arguments in sas?
How do you debug and test your SAS programs?
If you could design your ideal job, what would it look like?
Explain the difference between informat and format with an example.
What are the prime responsibilities of data integration administrator? : Sas-di
What are the applications primarily used by business analyst? : Sas-bi
What is a method for assigning first.VAR and last.VAR to the BY group variable on unsorted data?
Have you ever used the SAS Debugger?
How can I remove header from output data set?
what is sas application server? : Sas-di
Difference between sum function and using “+” operator?