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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what do the pad and dim functions do? : Sas programming

563


Do you need to rearrange the order of the data for the report?

1830


What would you change about your job?

1920


Explain what is data step?

727


I have a dataset concat having variable a b & c. How to rename a b to e & f?

579






what are sas bi dashboard components? : Sas-bi

655


what is program data vector? : Sas-administrator

612


If you have a dataset that contains 100 variables, but you need only five of those, what is the code to force SAS to use only those variables?

701


Mention what are the data types does SAS contain?

695


in the flow of data step processing, what is the first action in a typical data step? : Sas programming

648


what are _numeric_ and _character_ and what do they do? : Sas programming

672


What are the scrubbing procedures in sas?

570


Give an example where SAS fails to convert character value to numeric value automatically?

606


how do you debug and test your sas programs? : Sas programming

558


What are SAS/ACCESS and SAS/CONNECT?

626