机器语言是低级编程语言。机器语言只能用 0 和 1 表示。早些时候,当我们必须在计算机屏幕上创建图片或显示数据时,仅使用二进制数字(0 和 1)进行绘制是非常困难的。例如:在计算机系统中写120,它的表示是1111000。所以很难学习。为了克服这个问题,发明了汇编语言。
汇编语言比低级语言多,比高级语言少,所以它是中间语言。汇编语言使用数字、符号和缩写代替 0 和 1。例如:对于加法、减法和乘法,它使用诸如 Add、sub 和 Mul 等符号。
下面是机器语言和汇编语言之间的差异表:
Machine Language | Assembly Language |
---|---|
Machine language is only understand by the computers. | Assembly language is only understand by human beings not by the computers. |
In machine language data only represented with the help of binary format(0s and 1s), hexadecimal and octadecimal. | In assembly language data can be represented with the help of mnemonics such as Mov, Add, Sub, End etc. |
Machine language is very difficult to understand by the human beings. | Assembly language is easy to understand by the human being as compare to machine language. |
Modifications and error fixing cannot be done in machine language. | Modifications and error fixing can be done in assembly language. |
Machine language is very difficult to memorize so it is not possible to learn the machine language. | Easy to memorize the assembly language because some alphabets and mnemonics are used. |
Execution is fast in machine language because all data is already present in binary format. | Execution is slow as compared to machine language. |
There is no need of translator.The machine understandable form is the machine language. | Assembler is used as translator to convert mnemonics into machine understandable form. |
Machine language is hardware dependent. | Assembly language is the machine dependent and it is not portable. |