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.|
Attention reader! Don’t stop learning now. Get hold of all the important CS Theory concepts for SDE interviews with the CS Theory Course at a student-friendly price and become industry ready.
- Language Processors: Assembler, Compiler and Interpreter
- Difference between Compiler and Assembler
- Difference between Cross-Assembler and Compiler
- Difference between Compiler and Interpreter
- Introduction of Assembler
- Difference and Similarities between PHP and C
- Difference between Stop and Wait, GoBackN and Selective Repeat
- Difference between Stop and Wait protocol and Sliding Window protocol
- Similarities and Difference between Java and C++
- Difference between Yaacomo and and XAP
- Difference between VoIP and and POTS
- Difference between ++*p, *p++ and *++p
- Difference Between DOS and Windows
- Difference between User Level thread and Kernel Level thread
- What’s difference between The Internet and The Web ?
- Difference between Priority Inversion and Priority Inheritance
- What’s difference between Linux and Android ?
- What’s difference between header files "stdio.h" and "stdlib.h" ?
- Difference between HTML and HTTP
- Difference between http:// and https://
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.