Skip to content
Related Articles

Related Articles

Difference between Assembler and Interpreter

View Discussion
Improve Article
Save Article
  • Last Updated : 31 Jul, 2020

1. Assembler :
An assembly language which is basically mnemonics like GO, HALT, JUMP, and NOT code which is translated to the machine language by programming language translator i.e., Assembler. Assembler is a program that takes assembly language as source code and converts it into the bit format i.e machine language which is understandable by the computers. For example NASM and MASM.

2. Interpreter :
Interpreter is a program that converts the high level language into the bit format i.e. machine language. The function of the interpreter and compiler is the same but the interpreter translates one line at a time and executes it. No object code is produced so every time when the program has to be run it is to be interpreted first.

Difference between Assembler and Interpreter :

1.It converts low-level language to the machine language.It converts high-level language to the machine language.
2.The program for an Assembler is written for particular hardware.The program for an Interpreter is written for particular language.
3.It is one to one i.e. one instruction translates to only one instruction.It is one to many i.e. one instruction translates to many instruction.
4.It translates entire program before running.It translates program instructions line by line.
5.Errors are displayed before program is running.Errors are displayed for the every interpreted instruction (if any).
6.It is used only one time to create an executable file.It is used everytime when the program is running.
7.Requirement of memory is less.Requirement of memory is more.
8.Programming language that it convert is Assembly language.Programming language that it convert are PHP, Python, Perl, Ruby.

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!