1 Introduction
1 Introduction
PROGRAMMING
COMPUTER PROGRAM
4
TERMS USED IN COMPUTER PROGRAMMING
5
TERMS CONT’D…
6
TERMS CONT’D…
9
LOW-LEVEL LANGUAGES
computers.
11
MACHINE LANGUAGE
Abc D
10000011100010110010100000010010100
35bits=4.bytes
8bits=1byte
1024bytes=1kb
1024kb=1mb
1024=1gb
11101 110011 1110001
11110 111000 1110000 12
ASSEMBLY LANGUAGE (2ND
GENERATION LANGUAGE)
13
ASSEMBLY LANGUAGE CONT’D…
14
ASSEMBLY LANGUAGE CONT’D…
mov ax,60
mov bx,50
add ax,bx
16
ADVANTAGES OF ASSEMBLY LANGUAGE
OVER MACHINE LANGUAGE
assembly language.
17
ADVANTAGES OF LOW-LEVEL LANGUAGES
The CPU can easily understand machine language without translation.
highly efficient & allow direct control of each operation. They are
therefore suitable for writing Operating system software & Game
programs, which require fast & efficient use of the CPU time.
Low-level languages are stable, i.e., they do not crash once written.
18
DISADVANTAGES OF LOW-LEVEL
LANGUAGES
They are difficult to learn, understand, and write programs in them.
Their programs are difficult to debug (remove errors from).
The programs are very long; hence, writing a program in a low-level
language is usually tedious & time consuming.
The programs are difficult to develop, maintain, and are also prone to
errors (i.e., it requires highly trained experts to develop and maintain
the programs).
They are machine-dependent (specific), hence non-portable. This
implies that, they are designed for a specific machine & specific
processor, and therefore, cannot be transferred between machines
with different hardware or software specifications.
It is not easy to revise the program, because this will mean re-writing
the program again.
19