Languages which computer
understand
* Machine Level Languages (MLL)
-
It works on Binary
Digit i.e. 0 & 1.
-
Bit is known as binary digit.
-
It consist of opcodes
and operand where, opcode is operation code and operand is
location/address.
-
In machine
level code it uses only (0 & 1) so, that it can directly interact
with the machine.
-
The execution
time of machine level language is fast as compared to other.
-
It is
difficult to write program in MLL. Because its code is so complex to debug and
modify the program.
-
It is machine
depend because every machine has different Architecture so, if we move our code
from one machine to other then t may give us error.
·
Assembly level
Language (ALL)
-
It uses mnemonic
code in of machine code.
-
Some Mnemonic
code are as :-
FRST
|
First
|
SCND
|
Second
|
ANSR
|
Answer
|
CLA
|
Clear Screen
|
ADD
|
Addition
|
SUB
|
Subtraction
|
MUL
|
Multiplication
|
DIV
|
Division
|
HLLT
|
Hault
|
STA
|
Store to
resister
|
-
In Assembly
level language programing is easy as compare to machine level language
because it uses Mnemonic Code.
-
It is easy
to understand as compare to MLL.
-
The processing
speed or execution is slow as compare to MLL because it need translator
to convert mnemonic code to machine code,
-
The name of
translator is Assembler.
-
It is not very
complex so, that code may modified easily.
-
Assembly Code à Assembler à Machine Code.
*
Assembler
-
Assembler convert
assembly code to machine code.
-
It convert
code which is also known as an object code.
-
Assembly Level
Language use some code which is known as mnemonic code. Which is in the
form of alphabet and computer can understand only machine code
so, these mnemonic code must be converted into machine code and we will use assembler
to convert into machine code.
-
It is easy to understand
as compare to machine code.
-
Program
written in Assembly Languages is quite simple as compare to Machine code.
-
We can easily debug
assembly code.
-
Assembly Level
Language must convert into machine code so, processing speed slow as
compare to machine code.
*
Interpreter
-
Interpreter is
a translator which is used to convert high level languages to machine
level languages.
-
Interpreter
converts each time before executions of codes.
-
Interpreter
translate line by line if there is any error on particular line then it
must be resolve so, that interpreter convert it and more to next line.
-
It is slower
because it converts line by line.
-
With the help
of interpreter coding is in form of english alphabet so, it is easier to
understand by the users.
-
Interpreter can’t
convert the source code to object code like compiler so, its execution time
is slow.
-
The error
which is generated by the interpreter is easily debug.
*
Compiler
-
Compiler which
converts high level languages into machine level languages.
-
Compiler
converts high level languages to object code because of this object code it
need not to convert source code each time when it is being executed.
-
Compiler
convert whole source code as a whole.
-
Compiler is fast
as compare to interpreter because it converts whole source code to object code
where interpreter convert it line by line.
-
Different type
of compiler used for different programming languages where some of programming
languages has many compiler for the same languages like ‘C’.
-
“C” language
use compiler i.e. Turbo C, Borland C, ANSI C.
·
High Level
Languages
-
In High Level
Languages it uses English alphabets for coding which is quite easier
to program.
-
It need compiler
or interpreter to convert these english alphabets to machine codes.
-
High Level Language
is easy to debug and resolve the error.
-
It is easy
to understand.
-
High Level
Language is not fully depended upon computer architecture.
-
High Level
Language is slow as compare to machine level language.
-
High Level
Language is easy to modify and execute it on different platform.
-
Some of high
level languages are JAVA, COBOL, QBASIC, FORTRAN.
0 Comments
Thank You ! For your love