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

Answers were Sorted based on User's Feedback



what is the difference between compiler and interpreter? give any one example (software product) th..

Answer / rajaanku11

1.Compiler checks syntax 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 ?    342 Yes 152 No

what is the difference between compiler and interpreter? give any one example (software product) th..

Answer / sanjay

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 ?    236 Yes 58 No

what is the difference between compiler and interpreter? give any one example (software product) th..

Answer / praveena

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


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

Is This Answer Correct ?    151 Yes 27 No

what is the difference between compiler and interpreter? give any one example (software product) th..

Answer / smile555

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 ?    148 Yes 44 No

what is the difference between compiler and interpreter? give any one example (software product) th..

Answer / vedavyas

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 ?    54 Yes 25 No

what is the difference between compiler and interpreter? give any one example (software product) th..

Answer / mehboob alam

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 ?    72 Yes 44 No

what is the difference between compiler and interpreter? give any one example (software product) th..

Answer / anuja

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 ?    48 Yes 22 No

what is the difference between compiler and interpreter? give any one example (software product) th..

Answer / p.rakesh kumar reddy

-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 ?    40 Yes 14 No

what is the difference between compiler and interpreter? give any one example (software product) th..

Answer / sri

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 ?    45 Yes 24 No

what is the difference between compiler and interpreter? give any one example (software product) th..

Answer / gautam menariya

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 ?    46 Yes 32 No

Post New Answer

More SAS Interview Questions

is QUALCOMM using SAS ?

1 Answers  


what is sas metadata server? : Sas-di

0 Answers  


How to convert a numeric variable to a character variable?

0 Answers  


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

0 Answers  


How to Rename Library?

3 Answers  


If reading a variable length file with fixed input, how would you prevent SAS from reading the next record if the last variable didn’t have a value?

3 Answers   Accenture,


what is data integration? : Sas-di

0 Answers  


How do I CREATE an external dataset with sas code? I would like to create within a sascode a non-exsistent textfile on the host. So I am not forced to create the file befor filling it.

2 Answers  


what are the considerations when picking a SAS/STAT procedure?

0 Answers   Accenture, Quintiles,


Define run-group processing?

0 Answers  


if a variable contain dates like "2015/01"---"2015/12" (yymm) ,How to add day to those dates,if them month is jan then 31 if the month is feb then 28 so on ...

0 Answers   Accenture,


Please, anyone, let me know the style or an example of using 'by='/'by' variable of a PDV(Program Data Vector)

3 Answers   Verinon Technology Solutions,


Categories