what is the difference between compiler and interpreter?
give any one example (software product) that act as a
interpreter?

Answer Posted / osama

tax of programme where as Interpreter
checks the keywords of a prog.

2. compiler checks at a time all the prog, But interpreter
checks simultaneously in the eidtor.

3.Interpretor provides colour coding to the prog and helps
in self debugging while writing a prog.

Is This Answer Correct ? 127 Yes 59 No
3
Rajaanku11

Re: what is the difference between compiler and interpreter? give any one example (software product) that act as a interpreter?
Answer
# 2
A compiler compiles the source code in a form that can be
used directly by the computer. At run time the code is to
run the programme is already there.

An interpreter reads each line of the source code and
converts it to machine code on the fly. This happens every
time the programme is run. Consequently it is very slow as
it is converting source code to machine code while the
programme is running.

A compiler does it once and thats it.

So the trade off is speed.

DOS BASIC was interpreted. QBASIC could be either. VB, C++
and all modern high level languages are compliled. Nobody
uses an interpreter for anything serious although an
interpreted programme can be a good teaching aid

Is This Answer Correct ? 103 Yes 24 No
3
Sanjay





Re: what is the difference between compiler and interpreter? give any one example (software product) that act as a interpreter?
Answer
# 3
Compiler vs. Interpreter

An interpreter translates some form of source code into a
target representation that it can immediately execute and
evaluate. The structure of the interpreter is similar to
that of a compiler, but the amount of time it takes to
produce the executable representation will vary as will the
amount of optimization.

Compiler characteristics:
* spends a lot of time analyzing and processing the program
* resulting executable is some form of machine- specific
binary code
* the computer hardware interprets (executes) the resulting code
* program execution is fast

Interpreter characteristics:
* relatively little time is spent analyzing and processing
the program
* the resulting code is some sort of intermediate code
* the resulting code is interpreted by another program
* program execution is relatively slow

Is This Answer Correct ? 62 Yes 16 No
1
Smile555

Re: what is the difference between compiler and interpreter? give any one example (software product) that act as a interpreter?
Answer
# 4
compiler compile the source code while interpreter compile
the code that is allready compiled that is in the form of
bytecode
compiler scan whole code at once so it is fast incompare
with interpreter while interpreter comiled the byte code
line by line and convert in machine code so it is slow in
compare with compiler

Is This Answer Correct ? 28 Yes 17 No
3
Mehboob Alam

Re: what is the difference between compiler and interpreter? give any one example (software product) that act as a interpreter?
Answer
# 5
compiler takes whole program at a time and executes it.....


where as interpreter executes the program line by line.....

Is This Answer Correct ? 47 Yes 12 No
3
Praveena

Re: what is the difference between compiler and interpreter? give any one example (software product) that act as a interpreter?
Answer
# 6
A compiler, in general, reads higher level language computer
code and converts it to either p-code or native machine
code. An interpreter runs directly from p-code or an
interpreted code such as Basic or Lisp. Typically, compled
code runs much faster, is more compact and has already found
all of the syntax errors and many of the illegal reference
errors. Interpreted code only finds such errors after the
application attempts to interpret the affected code.
Interpreted code is often good for simple applications that
will only be used once or at most a couple times, or maybe
even for prototyping. Compiled code is better for serious
applications.

Is This Answer Correct ? 14 Yes 16 No
5
Gautam Menariya

Re: what is the difference between compiler and interpreter? give any one example (software product) that act as a interpreter?
Answer
# 7
Compiler:-

-Generates code to implement meaning of a source program in
the execution domain.
-Checks the code entirely in one go.
-It checks the legality of the operations(assigning or
manipulating variables)

Interpreteres:-

-bridges execution gap without generating a machine
language program.
-Meaning of source statement is implemented by finding
appropriate data manipulation routines and invokes it with
appropriate parameters.(instead of code generation)
-works line by line
-Avoiding generation of machine language makes interpreter
portable.

Is This Answer Correct ? 19 Yes 6 No
0
Anuja

Re: what is the difference between compiler and interpreter? give any one example (software product) that act as a interpreter?
Answer
# 8
Compiler compiles source code into byte code, it takes whole
code and executes,

Interpreter excuts bytecode line by line, and it converts
byte code into Machine code.

Compiler is faster compater to Interpreater.


By,
Durgam S

Is This Answer Correct ? 17 Yes 8 No
0
Sri

Re: what is the difference between compiler and interpreter? give any one example (software product) that act as a interpreter?
Answer
# 9
-An interpreter translates some form of source code into a
target representation that it can immediately execute and
evaluate. The structure of the interpreter is similar to
that of a compiler, but the amount of time it takes to
produce the executable representation will vary as will the
amount of optimization.

-Interpreter excuts bytecode line by line, and it converts
byte code into Machine code.


-compiler takes whole program at a time and executes it.....


-where as interpreter executes the program line by line.....

Is This Answer Correct ? 16 Yes 6 No
0
P.rakesh Kumar Reddy

Re: what is the difference between compiler and interpreter? give any one example (software product) that act as a interpreter?
Answer
# 10
The main difference between an compiler and an interpreter
is that a compiler executes the program entirely at a time
and that of a interpreter is that it goes on line by line
storing each lines output separately i.e interpreter
executes only when there is a need for the execution. the
best example of a software product is that acts as an
interpreter is a JVM which is nothing but a interpreter. lot
of them say that java is a language but there as as many
proofs that argue that java is a package to those who say it
a language.

* one more diff. is that the time of execution of a compiler
is very high when compared to an interpreter .........

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe a time when you were really stuck on a problem and how you solved it?

2181


where to use sas business intelligence? : Sas-bi

559


What system options would you use to help debug a macro? : sas-macro

614


What are the default statistics that proc means produce?

583


What is program data vector (pdv) and what are its functions?

603






What are the data types that sas contain?

636


In SAS explain which statement does not perform automatic conversions in comparisons?

775


what is the primary data source for the wrs? : Sas-bi

627


Are you involved in writing the inferential analysis plan? Tables specifications?

3456


How does SAS handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, PROCs?

1074


What is the maximum and minimum length of macro variable

631


how would you create multiple observations from a single observation? : Sas programming

547


What do you know about sas and what we do? : sas-grid-administration

579


What are types of transport files?

6777


Hi,by usining ptf how we have to combine (likr merge)10 datasets at a time in the oracle database(and write a macro code also)?Like this i have a douts a lot if you dont mind may please send one text mail for me(madhusudhanap16@gmail.com)?

1177