Wednesday 27 November 2019

Difference Between Compiler and Interpreter

Generally a question always arise what is actual difference between Compiler and Interpreter ?

Today we are going to see actual differences between them ..Let See 


Compiler and Interpreter

Compiler : Generally a compiler is a system software ( a system software is a set of program ) and also called translator . compiler is application programming code which convert source code into machine language.

source code is known as application program (HLL) and machine language(LLL) is known as binary code. High level language is human understandable language like C, C++ etc. while low level language is only understand by computer into 0 or 1 binary format. Thus we need to compiler to translate the code into appropriate output.

Thus we can say compiler is use to convert high level language into low level language at one time i.e. compiler translate the source code completely at one time into machine code.If there is a errors in
compilation process it display all error in single list.



When compiler compile the source code it follow its all compilation phase like first it parse the code
into syntactically then process one after another then build .obj file.

Interpreter:        
Interpreter is also translator or computer program , which is use to convert source code into target machine code. It includes source code , pre compiled code and scripts. Compiler and interpreter both
are use to perform same task but difference is that interpreter interpret the code line by line while
compiler compile the code in single go.

Generally compiler convert the code into machine code (object file - executable file) before program run. Interpreters convert the pre compiled code into target machine code when program is run.


  • some popular interpreters examples are 
  • - Python interpreter
  • - Ruby interpreter
  • - Perl interpreter
  • - PHP interpreter



Client side and server side validation .....
Previous Post
Next Post
Related Posts

1 comment:

  1. good source for learning.
    you can see other programming languages follow the below link

    click me

    ReplyDelete