Types of Programming Languages in C++

Programming languages are of three types 
1.Machine language
2.Assembly language
3.High level language
Let us discuss in detail about each language

1.Machine language:

Machine language is the 1st generation language, this is the language which can be understand by the machine. As machine can understand only zero's and once's this language contains only 1's and 0's. Hence it is also called as Binary language or low level language. In order to work with machine language we must require the knowledge of system architecture.This are executed faster, but it is difficult for the programmer to built the program in an binary level.

2.Assembly language:

Combination of digits and numeric codes which supports symbolic instruction, hence it is also called as symbolic language. Compared to machine language, assembly language is easy to implement.To work with this language one should have good knowledge about micro processors. Here small codes are used such as MOV, SUB, etc.,
This language is meant for developing program's related to micro process. In order to convert the program's from assembly language to machine language we need an assembler. Assembler will help in conversion of data from assembly to machine language.

3.High level language:

High level language is 3rd generation language. Will support alphabets( a - z, A - Z ), digits(0 - 9), special characters. We can develop the program using regular English language, hence it is user understandable language.To work with high level language it is not necessary to have knowledge of system architecture or micro processor. This is meant for developing application software.
Here we need two translators they are:
i.Interpreter
ii.Compiler
i. Interpreter
    Used to translate source code to object code. It will check the code line by line, if at all any error occurs then the program execution stops.
ii.Compiler
   Used to translate enter code in an single attempt, if  any error occurs then they are isolated with next screen.Compilers are faster then interpreters


Post a Comment

0 Comments