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 / harry(09819467068)

a compiler and interpreter both convert the source code o machine language but the difference is the compiler compiles and displays he error all in a once in the same window for the whole program but the interpreter displays the error as it goes on coding each line and displays the next line after the error in the present line is checked and verified.

call me if u have any questions or doubts on this subject of information technology on 09819467068

Is This Answer Correct ?    23 Yes 10 No

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

Answer / dhaval

They are both similar as they achieve similar purposes, but inherently different as to how they achieve that purpose. Compiled code takes programs (source) written in some kind of programming language, and then ultimately translates it into object code or machine language. Compiled code does the work much more efficiently, because it produces a complete machine language program, which can then be executed. The interpreter translates instructions one at a time, and then executes those instructions immediately. The compiler is itself a computer program written usually in some implementation language.

Is This Answer Correct ?    14 Yes 9 No

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

Answer / ravi kaushik

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 ?    15 Yes 12 No

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

Answer / kodali shakti swaroop

compiler and interpriter are similer. Compiler compiles
source code into byte code, it takes whole
code and executes,

1.Compiler checks syntax of programme where as Interpreter
checks the keywords of a prog.
2.Interpretor provides colour coding to the prog and helps
in self debugging while writing a prog

Is This Answer Correct ?    9 Yes 6 No

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

Answer / abhishek singh

1-interpreter takes more time for converting source code into
target program while compiler takes less time .
2-an interpreter, however, can usually give better error diagnostic than compiler,because it execute source program statement by statement.

Is This Answer Correct ?    4 Yes 2 No

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

Answer / sambit gupta

COMPILER:
1. compiler checks the syntax of a program
2. it accumulates data from the source code into computer language
3. translation is very fast
4. it takes whole program at a time and translets it

INTERPRETER:
1. interpreter checks the the keyword of a program
2. it reads the data from the source code and convert it into given language
3. translation is slow
4. it translates program line by line

Is This Answer Correct ?    4 Yes 2 No

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

Answer / preetam

.a compiler translate the entire program before execution.
.an interpreter translates one line,executes that line and
then translate the next line.
.a compiler creates a list of errors after compilation.
.an interpreter stops after the first error.
.a compiler produces an independent executable file.
.an interpreted program needs the interpreter each time it
is run.
.a compiled program is translated code.
.an interpreted program is translated each time it is run.
.example of compiler is C, C++.
.example of interpreter is VB,Asp.net.

Is This Answer Correct ?    3 Yes 1 No

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

Answer / rekha

1.An compiler interprets the higher level language to
machine understandable language.

2.compiler compils entire code at atime,but interpreter
interprets the code line by line.

Is This Answer Correct ?    2 Yes 0 No

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

Answer / anusha

complier executes all the set programme code at once where
as the interpreter executes after checking each line of
programme code and it also checks for errors....

Is This Answer Correct ?    2 Yes 0 No

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

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

More SAS Interview Questions

How do you convert basic cube to transaction cube and transaction cube to basic cube?

0 Answers  


What is SAS?

0 Answers  


how to read the variables in sas? : Sas-administrator

0 Answers  


When merging 2 datasets with a common variable (not merge key), how to keep both?

3 Answers  


Under what circumstances would you code a SELECT construct instead of IF statements?

7 Answers   Accenture,






Mention the category in which sas informats are placed?

0 Answers  


What is the length assigned to the target variable by the scan function?

0 Answers  


How do you read in the variables that you need?

5 Answers  


Hello Friends, am new to this forum and am not good at sas progarmming. please can any one of you send me couple of sample large sample SAS Jobs which can you use 200 MB of data and other sas job upto 25GB of data. am doing a performance testing on our legacy systems and new upgraded system. I would really appreciate if you can do me this favor Thank you Priya

0 Answers  


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

0 Answers  


What makes sas stand out to be the best over other data analytics tools?

0 Answers  


How to create a permanent sas data set?

0 Answers  


Categories