Language is a medium for communication. If we want to perform anything with another person, we can know the human language as a human being. Similarly, if we want to perform anything with a computer, we need to know some computer language.
Computer languages are at three levels:
- Machine level (or) Low-level language: These languages consists only of zeros and ones (binary language). The system can directly understand this language. Processing of instructions is very fast and effective. At the machine level, each and every instruction is a sequence of zeros and ones only. But, it is very difficult to remember all instructions as a sequence of 0’s and 1’s.
Ex: If we want to add 10 and 12, we need instruction as below.
11010101 00001010 00001100
In the above example, the code 11010101=> ADD, 00001010 =>10, 00001100 =>12.
- Assembly level language: These languages consist of Mnemonics means English shortcut codes like ADD, SUB, MUL… It is better to remember for programmers. But, these instructions are not directly understood by the computer.
So, here we need a translator for converting assembly level instructions to machine language instructions. The translator which converts assembly language to machine level language is known as ASSEMBLER.
- High-level language: These languages are seemed to be English like languages. These languages are easy to implement for programmers. But, these instructions are not directly understood by the
So, here we need a translator which converts high-level language instructions to machine level language instructions. The translator which converts high-level language instructions to machine level language instructions is known as COMPILER (or) INTERPRETER.