Generations of Programming Language
Generations of Programming Language
Programming languages have been developed over the year in a phased manner. Each phase of
developed has made the programming language more user-friendly, easier to use and more
powerful. Each phase of improved made in the development of the programming languages can
be referred to as a generation. The programming language in terms of their performance reliability
and robustness can be grouped into five different generations,
Programming languages
The first generation programming language is also called low-level programming language
because they were used to program the computer system at a very low level of abstraction. i.e. at
the machine level. The machine language also referred to as the native language of the computer
system is the first generation programming language. In the machine language, a programmer
only deals with a binary number.
They are translation free and can be directly executed by the computers.
The programs written in these languages are executed very speedily and efficiently by the
CPU of the computer system.
The programs written in these languages utilize the memory in an efficient manner because
it is possible to keep track of each bit of data.
2. Second Generation language (Assembly Language)
The second generation programming language also belongs to the category of low-level-
programming language. The second generation language comprises assembly languages that use
the concept of mnemonics for the writing program. In the assembly language, symbolic names are
used to represent the opcode and the operand part of the instruction.
It is easy to develop understand and modify the program developed in these languages are
compared to those developed in the first generation programming language.
The programs written in these languages are less prone to errors and therefore can be
maintained with a great case.
The third generation programming languages were designed to overcome the various limitations
of the first and second generation programming languages. The languages of the third and later
generation are considered as a high-level language because they enable the programmer to
concentrate only on the logic of the programs without considering the internal architecture of the
computer system.
The languages of this generation were considered as very high-level programming languages
required a lot of time and effort that affected the productivity of a programmer. The fourth
generation programming languages were designed and developed to reduce the time, cost and
effort needed to develop different types of software applications.
These programming languages allow the efficient use of data by implementing the various
database.
They require less time, cost and effort to develop different types of software applications.
The program developed in these languages are highly portable as compared to the
programs developed in the languages of other generation.
The programming languages of this generation mainly focus on constraint programming. The
major fields in which the fifth generation programming language are employed are Artificial
Intelligence and Artificial Neural Networks
These languages can be used to query the database in a fast and efficient manner.
In this generation of language, the user can communicate with the computer system in a
simple and an easy manner.
The programming languages that are very close to machine code (0s and 1s) are called low-level
programming languages.
machine language
assembly language
Machine Language
The instructions in binary form, which can be directly understood by the computer (CPU) without
translating them, is called a machine language or machine code.
Machine language is also known as first generation of programming language. Machine language
is the fundamental language of the computer and the program instructions in this language is in
the binary form (that is 0's and 1's).
The only advantage of machine language is that the program of machine language runs very fast
because no translation program is required for the CPU.
Machine Dependent - the internal design of every computer is different from every other
type of computer, machine language also differs from one computer to another. Hence,
after becoming proficient in the machine language of one type of computer, if a company
decides to change to another type, then its programmer will have to learn a new machine
language and would have to rewrite all existing program.
Difficult to Modify - it is difficult to correct or modify this language. Checking machine
instructions to locate errors is very difficult and time consuming.
Difficult to Program - a computer executes machine language program directly and
efficiently, it is difficult to program in machine language. A machine language programming
must be knowledgeable about the hardware structure of the computer.
Assembly Language
It is another low-level programming language because the program instructions written in this
language are close to machine language.
With assembly language, a programmer writes instructions using symbolic instruction code instead
of binary codes.
Symbolic codes are meaningful abbreviations such as SUB is used for substation operation, MUL
for multiply operation and so on. Therefore this language is also called the low-level symbolic
language.
The set of program instructions written in assembly language are also called as mnemonic code.
Easy to understand and use - due to the use of mnemonic instead of numeric op-codes
and symbolic names for data location instead of numeric addresses, it is much easier to
understand and use in contrast with machine language.
Easier to locate and correct errors - the programmers need not to keep track of storage
location of the data and instruction, fewer errors are made while writing programs in
assembly language and those that are made, are easier to find and correct.
Easy to modify - assembly language are easier to understand, it is easier to locate, correct
and modify instruction of an assembly language program.
Efficiency of machine language - an assembly language program will be just as long as
the resulting machine language program. Hence, leaving out the translation time required
by the assembler, the actual execution time for an assembly language program and its
equivalent machine language program.
And here are some of the main disadvantages of using assembly language:
Machine dependent - each instructions of assembly language program is translated into
exactly one machine language instruction, an assembly language programs are dependent
on machine language.
Knowledge of hardware required - assembly languages are machine dependent, an
assembly language programmer must have a good knowledge of characteristics and logical
structure of his/her computer to write a good assembly language computer code.
Machine level coding - assembly language instruction is substituted for one machine
language instruction. Hence like machine language programs, write assembly language
program is also time consuming and difficult.
The programming languages that are close to human languages (example like English languages)
are called the high-level languages.
Fortran
COBOL
Basic
Pascal
C
C++
Java
The high level languages are similar to English language. The program instructions are written
using English words, for example print, input etc. But each high level language has its own rule
and grammar for writing program instructions. These rules are called syntax of the language.
The program written in high level language must be translated to machine code before to run it.
Each high level language has its own translator program.
Procedural languages
Non procedural languages
Object oriented programming languages
There are several advantages of high level programming languages. The most important
advantages are:
Easy to learn - the high level languages are very easy to learn than low level languages.
The statements written for the program are similar to English-like statements.
Easy to understand - the program written in high level language by one programmer can
easily be understood by another because the program instructions are similar to the English
language.
Easy to write program - in high level language, a new program can easily be written in a
very short time. The larger and complicated software can be developed in few days or
months.
Easy to detect and remove errors - the errors in a program can be easily detected and
removed. mostly the errors are occurred during the compilation of new program.
Built-in library functions - Each high level language provides a large number of built-in
functions or procedures that can be used to perform specific task during designing of new
programs. In this way, a large amount of time of programmer is saved.
Machine Independence - program written in high level language is machine independent.
It means that a program written in one type of computer can be executed on another type of
computer.
Low efficiency - a program written in high level languages has lower efficiency than one
written in a machine/assembly language to do the same job. That is, program written in high
level languages result in multiple machine language instruction that may not be optimize,
taking more time to execute and requiring more memory space.
Less flexibility - high level languages are less flexible than assembly languages because
they do not normally have instructions or mechanism to control a computer's CPU, memory
and register.
Procedural Language
Procedural languages are also known as third generation languages (3GLs). In a procedural
language, a program is designed using procedures.
Non procedural programming languages are also known as fourth generation languages. In non
procedural programming languages, the order of program instructions is not important. Ihe
importance is given only to, what is to be done.
With a non procedural language, the user/programmer writes English like instructions to retrieve
data from databases. These languages are easier to use than procedural languages. These
languages provide the user-friendly program development tools to write instructions. The
programmers have not to spend much time for coding the program.
The most important non procedural languages and tools are discussed below:
SQL - it stands for structured query language. it is very popular database access language
and is specially used to access and to manipulate the data of databases. The word query
represents that this language is used to make queries (or enquiries) to perform various
operations on data of database. However, SQL can also be used to create tables, add
data, delete data, update data of database tables etc.
RPG - it stands for report program generator. This language was introduced by IBM to
generate business reports. Typically, RPG is used for application development on IBM
midrange computers, such as AS/400.
The object oriented programming concept was introduced in the late 1960s, but now it has
become the most popular approach to develop software.
In object oriented programming, the software is developed by using a set of interfacing object. An
object is a component of program that has a set of modules and data structure. The modules are
also called methods and are used to access the data from the object. The modern technique to
design the program is object oriented approach. It is a very easy approach, in which program
designed by using objects. Once an object for any program designed, it can be re-used in any
other program.
Now-a-days, most popular and commonly used object oriented programming (OOPs) languages
are C++ and Java.