Meaning of Assembler
The computer understands machine language that is 0 and 1. In assembly language mnemonics are used for specific instruction, like ADD for addition, SUB for subtraction, etc. So a translator is used to translate the assembly language into machine language, which is called an assembler. Assembler is the 1st interface that makes it able to communicate humans with the machine.
Example of machine and assembly Language
Machine language -
Example: Add 10 and 5 = 00001011 00000001 00100010
Assembly language -
It uses Mnemonics. Words like ADD, MOV, SUB.
Example: Add 10 and 5 = Add 00000001 00100010
Example of Assembler
Addition of 22 and 24
Source code - add 10110 11000
Assmbler - 010011 10110 11000
Output - 10110 = 46
Advantages of Assembler
1.) It allows complex jobs to run more simply.
2.) It is memory efficient, as it requires less memory.
3.) It is faster, as its execution time is less.
4.) It requires less instruction as compared to machine language to get the result.
Disadvantages of Assembler
1.) It takes a lot of time and effort to write the code for the same.
2.) It is very complex and difficult to understand.
3.) It needs more size or memory of the computer to run the long programs written in Assembly Language.
------------------------------------------------------------------------------------
Related Link
-----------------------------------------------------------------------------------
0 Comments