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

What is a pdv and what are its functions?

0 Answers  


what are methods to identify duplicate observations?

5 Answers   HCL,


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

0 Answers   Oracle,


What do the sas log messages “numeric values have been converted to character” mean? What are the implications?

0 Answers  


Can we use where and having clauses in a single SAS program. ex: proc sql;     select a,b,c from test      where state in 'KA'      and having <some condition>. Is the above program run correctly, if not why ?     

4 Answers   UHG,






do you prefer proc report or proc tabulate? Why? : Sas programming

0 Answers  


what is null hypothesis? why do you consider that?

0 Answers   Accenture, Quintiles,


What is _n_?

22 Answers  


I need help in merging two different datasets. I am merging by date and I want to propagate observations from one dataset to the corresponding dates. One dataset has a unique date for each day of the month, while the other dataset has same date for different patient visits. For example I want to spread an observation on the 31DEC2008 from one dataset to several observations with the same date on a second dataset for all the patients who visited on that date. I have tried to merge the two and the result is not what I wanted. Instead I get a dataset whereby all the dates have missing values where observations from the first datset should have spread.

1 Answers  


We want to merge file A and B. File A has variable age, file B provide birthdate. How to merge the data according to age in file B

3 Answers  


How would you code a merge that will write the matches of both to one data set, the non-matches from the left-most data?

0 Answers  


Can you use a macro within another macro? If so how would SAS know where the current acro ended and the new one began?

1 Answers  


Categories