Evolution of Programming Language
Evolution of Programming Language
MACHINE LANGUAGE;-
The computer’s own binary-based language, or machine language, is difficult for human
beings to use. The programmer is required to input every command every command and all
data in binary form. Machine-language programming is such a tedious, time consuming task
that the time saved in running the the program rarely justifies the days or weeks needed to
write the program.Machine languages are the most primitive types of the computer
language.
machine language is a collection of binary digits or bits that the computer reads and
interprets. Machine language is the only language a computer is capable of understanding.
The exact machine language for a program or action can differ by operating system on the
computer. The specific operating system will dictate how a compiler writes a program or
action into machine language.
Computer programs are written in one or more programming languages, like C++, Java,
or Visual Basic. A computer cannot directly understand the programming languages used to
create computer programs, so the program code must be compiled. Once a program's code
is compiled, the computer can understand it because the program's code is turned into
machine language.
Below is an example of machine language (binary) for the text "Hello World".
01001000 01100101 01101100 01101100 01101111 00100000 01010111 01101111 01110010 01101100
01100100
Below is another example of machine language (non-binary), which will print the letter "A"
1000 times to the computer screen.
169 1 160 0 153 0 128 153 0 129 153 130 153 0 131 200 208 241 96
ASSEMBLY LANGUAGE:-
Each family of processors has its own set of instructions for handling various operations such
as getting input from keyboard, displaying information on screen and performing various
other jobs. These set of instructions are called 'machine language instructions'.
A processor understands only machine language instructions, which are strings of 1's and 0's.
However, machine language is too obscure and complex for using in software development.
So, the low-level assembly language is designed for a specific family of processors that
represents various instructions in symbolic code and a more understandable form.
Assembly language is dependent upon the instruction set and the architecture of the
processor. In this tutorial, we focus on Intel-32 processors like Pentium. To follow this tutorial,
you will need −
Installing NASM
If you select "Development Tools" while installing Linux, you may get NASM installed along
with the Linux operating system and you do not need to download and install it separately.
For checking whether you already have NASM installed, take the following steps −
Check The netwide assembler (NASM) website for the latest version.
Download the Linux source archive nasm-X.XX.ta.gz, where X.XX is the NASM version
number in the archive.
Unpack the archive into a directory which creates a subdirectory nasm-X. XX.
cd to nasm-X.XX and type ./configure. This shell script will find the best C compiler to
use and set up Makefiles accordingly.
Type make install to install nasm and ndisasm in /usr/local/bin and to install the man
pages.
This should install NASM on your system. Alternatively, you can use an RPM distribution for
the Fedora Linux. This version is simpler to install, just double-click the RPM file.
The high level languages use the English words such as OPEN, LIST, PRINT, which might stand
for an array of instructions.These commands are entered via a keyboard or from a
programme in a storage device.Both High level language and low level language are the
programming language’s types.
The main difference between high level language and low level language is that,
Programmers can easily understand or interpret or compile the high level language in
comparison of machine. On the other hand, Machine can easily understand the low level
language in comparison of human beings.
It is programmer friendly
It is complex to debug
It is complex to maintain
6. It is portable. It is non-portable.
Eg:-
1. C++
2. C#
3. Cobol
4. Fortran
5. Java
6. JavaScript
7. Objective C
8. Pascal
9. Perl
10. PHP
11. Python
12. Swift
Each of these languages use different syntax. Some are designed for writing desktop software
programs, while others are best-suited for web development. But they all are considered
high-level since they must be processed by a compiler or interpreter before the code is
executed.
Source code written in languages like C++ and C# must be compiled into machine code in
order to run. The compilation process converts the human-readble syntax of the high-level
language into low-level code for a specific processor. Source code written in scripting
languages like Perl and PHP can be run through an interpreter, which converts the high-level
code into a low-level language on-the-fly.