Results 1 to 5 of 5

Thread: Compiler Vs Interpreter?

  1. #1
    Join Date
    Feb 2009
    Posts
    12

    Compiler Vs Interpreter?

    Hello Friends!

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

    Regards,

  2. #2
    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.

  3. #3
    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

  4. #4
    Join Date
    Apr 2008
    Posts
    2,005

    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.

  5. #5
    Join Date
    Oct 2005
    Posts
    2,393

    Re: Compiler Vs Interpreter?

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

    Hope this helps!

Similar Threads

  1. Which is the best C++ Compiler
    By Ambak in forum Polls & Voting
    Replies: 7
    Last Post: 20-01-2012, 11:39 AM
  2. Is there any Compiler or IDE for C on Windows?
    By Wiro in forum Software Development
    Replies: 6
    Last Post: 08-01-2010, 01:11 PM
  3. Best C Compiler
    By kyosang in forum Software Development
    Replies: 3
    Last Post: 30-12-2009, 09:18 AM
  4. Bad interpreter: no such file or directory
    By MobiNuX in forum Operating Systems
    Replies: 3
    Last Post: 29-07-2009, 10:57 PM
  5. Compiler for PHP
    By Farley in forum Software Development
    Replies: 3
    Last Post: 13-03-2009, 07:31 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,111,261.39082 seconds with 16 queries