Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 11-02-2009
Member
 
Join Date: Feb 2009
Posts: 12
Compiler Vs Interpreter?

Hello Friends!

I want to know the difference between the Compiler & Interpreter!

Regards,
Reply With Quote
  #2  
Old 11-02-2009
Member
 
Join Date: May 2008
Posts: 44
Re: Compiler Vs Interpreter?

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.
Reply With Quote
  #3  
Old 11-02-2009
Member
 
Join Date: Apr 2008
Posts: 1,948
Re: Compiler Vs Interpreter?

The differences between Compiler and Interpreter are:

Compiler
1 : one that compiles

2 : a computer program that translates an entire set of instructions written in a higher-level symbolic language (as C) into machine language before the instructions can be executed

spends a lot of time analyzing and processing the program

the resulting executable is some form of machine- specific binary code

the computer hardware interprets (executes) the resulting code

program execution is fast


Interpreter

1: one that interprets: as a: one who translates orally for parties conversing in different languages b: one who explains or expounds

2 a: a machine that prints on punch cards the symbols recorded in them by perforations b: a computer program that executes each of a set of high-level instructions before going to the next instruction

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
Reply With Quote
  #4  
Old 11-02-2009
Member
 
Join Date: Apr 2008
Posts: 2,001
Re: Compiler Vs Interpreter?

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.
Reply With Quote
  #5  
Old 11-02-2009
Member
 
Join Date: Oct 2005
Posts: 2,389
Re: Compiler Vs Interpreter?

Please visit this page for more detailed comparison between Compiler VS Interpreter!

Hope this helps!
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Compiler Vs Interpreter?"
Thread Thread Starter Forum Replies Last Post
Which is the best C++ Compiler Ambak Polls & Voting 7 20-01-2012 11:39 AM
Is there any Compiler or IDE for C on Windows? Wiro Software Development 6 08-01-2010 01:11 PM
Best C Compiler kyosang Software Development 3 30-12-2009 09:18 AM
Bad interpreter: no such file or directory MobiNuX Operating Systems 3 29-07-2009 10:57 PM
Compiler for PHP Farley Software Development 3 13-03-2009 07:31 PM


All times are GMT +5.5. The time now is 08:46 AM.