What is Computer Language?
Generally, in India, we use languages like english, hindi, telugu etc., to make communication between two persons. That means, when we want to create communication between two persons we need a language through which persons can express their feelings with each other.
Similarly, when we want to set communication between user and computer or between two or more computers we need a language through which users can provide informations to computer and vice versa.
When user wants to give any instruction to the
computer, the user needs an specific language and is known as computer
User interacts with the computer by using programs and that programs are created using computer programming languages like C, C++, Java etc.,
Computer languages are the languages through which a user can communicate with the computer by writing instructions through program also called programming language.
Every computer programming language contains a set of predefined words and a huge set of rules (syntax) and which are used to create the instructions of a program.
Computer Languages Classification
Over the years, computer languages have been evolved from Low Level to High Level Languages. In the earliest days of computers, only Binary Language was used to write programs. The computer languages are classified as follows…
Low Level Language (Machine Language):-
Low level language is also known as Machine language.
language is the only language which can be understood by the computer. Binary
Language is an example of low level language. Low level language is also
known as Machine Language. The binary language contains only two symbols
1 & 0. All the instructions of binary language are written in the form of
binary numbers 1’s & 0’s. A computer can directly understand the binary
language. Machine language is also known as Machine Code.
As the CPU directly understands the binary language instructions, it does not requires any translater. CPU directly starts executing the binary language instructions, and takes very less time to execute the instructions as it does not requires any translation. Low level language is considered as the First Generation Language (1GL).
- A computer can easily understand the low level language.
- Low level language instructions are executed directly without any translation.
- Low level language instructions require very less time for thier execution.
- Low level language instructions are very difficult to use and understand.
- Low level language instructions are machine dependent, that means a program written for a particular machine does not executes on other machine.
- In low level language, there is more chance for errors and it is very difficult to find errors, debug and modify.
#Middle Level Language (Assembly Language)
Middle level language is a computer language in which the instructions are created using symbols such as letters, digits and special characters. Assembly language is an example of middle level language. In assembly language, we use predefined words called mnemonics. Binary code instructions in low level language are replaced with mnemonics and operands in middle level language. But computer can not understand mnemonics, so we use a translator called Assembler to translate mnemonics into binary language. Assembler is a translator which takes assembly code as input and produces machine code as output. That means, computer can not understand middle level language, so it needs to be translated into low level language to make it understandable by the computer. Assembler is used to translate middle level language to low level language.
- Writing instructions in middle level language is easier than writing instructions in low level language.
- Middle level language is more readable compared to low level language.
- Easy to understand, find errors and modify.
- Middle level language is specific to a particular machine architecture, that means it is machine dependent.
- Middle level language needs to be translated into low level language.
- Middle level language executes slower compared to low level language.
High Level Language
language is a computer language which can be understood by the users. High
level language is very similar to the human languages and have a set of grammar
rules that are used to make instructions more easily. Every high level language
have a set of predefined words known as Keywords and a set of rules known as
Syntax to create instructions. High level language is more easier to understand
for the users but the computer can not understand it. High level language needs
to be converted into low level language to make it understandable by the
computer. We use Compiler or interpretor to convert high level
language to low level language.
Languages like COBOL, FORTRAN, BASIC, C ,C++, JAVA etc., are the examples of high level languages. All these programming languages use human understandable language like english to write program instructions. These instructions are converted to low level language by the compiler so that it can be understood by the computer.
- Writing instructions in high level language is more easier.
- High level language is more readable and understandable.
- The programs created using high level language runs on different machines with little change or no change.
- Easy to understand, create programs, find errors and modify.
- High level language needs to be translated to low level language.
- High level language executes slower compared to middle and low level languages.
Understanding Computer Languages
The follwing figure provides few key points related to the computer languages.
From the above figure, we can observe the following key points…
- The programming languages like C, C++, Java etc., are written in High level language which is more comfortable for the developers.
- High level language is more closer to the users.
- Low level language is more closer to the computer. Computer hardware can understand only the low level language (Machine Language).
- The program written in high level language needs to be converted to low level language to make communication between the user and the computer.
- Middle level language is not closer to both user and computer. We can consider it as a combination of both high level language and low level language.