📜  汇编器和口译员之间的区别

📅  最后修改于: 2021-08-27 07:07:16             🧑  作者: Mango

1.汇编程序:
基本上是助记符的汇编语言,如GO,HALT,JUMP和NOT代码,这些语言通过编程语言转换器(即Assembler )转换为机器语言。汇编程序是一种程序,它将汇编语言作为源代码并将其转换为位格式,即计算机可以理解的机器语言。例如NASM和MASM。

2.口译员:
解释器是将高级语言转换为位格式(即机器语言)的程序。解释器和编译器的函数相同,但是解释器一次翻译一行并执行。没有产生目标代码,因此,每次必须运行程序时,都必须首先对其进行解释。

汇编器和解释器之间的区别:

S.No. Assembler 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.