Lecture 8 - Language Programming
Lecture 8 - Language Programming
High-level-Language(HLL):-
1
Lecture Four Lecture 8 -Language Programming 1ST STAGE
Compiler Translations:-
Naturally, a source program written in a high-level language, must also be translated into
a machine usable code, that can be executed by the computer. A translating program that
can perform this operation is called" compiler".
The compiler:- converts the entire source high level languages program into a machine
language object program, before the program is executed as in FORTRAN.
Another type of translating program called " Interpreter" with the interpreter each
statement line is translated and executed immediately(one statement at a time) as with
Basic.
Machine language
BASIC interpreter
via program
2
Lecture Four Lecture 8 -Language Programming 1ST STAGE
Assembly language
Machine language
Assembly languagevia Assembler Program or
(mnemonics)
Machine code
Note:- Compilers are similar to assemblers in the fact. That they take the source program
and convert(translate) it in to an executable machine language program (object program).
3
Lecture Four Lecture 8 -Language Programming 1ST STAGE
Software
2)Application system(software):-
This type of softwares , comprises programs written to performs a specific tasks for the
user, and can be divided as:-
a. Application systems: this type of systems are written by a special software houses.
e.g. bank systems, salary system, airlines system, information banks.
b. Application programs: this programs direct the computer to accomplish specific
activities and it in general small programs and called user programs. e.g. writing a
letter using word processor aided design packages.
4
Lecture Four Lecture 8 -Language Programming 1ST STAGE
System software:-
System software has man objectives:-
-Making it easier for the user to get a job into a computer.
-Making it easier for the user to run the job and test it when it is in the computer.
Supervisor: At the heart of all operating systems is the supervisor program, it schedules
and coordinates is running. Its supervisor program is loaded in the internal memory,
directing and controlling.
I/O manager: In general, all data transformed to and form peripheral devices are filtered
through the I/O manager. It is insulates the rest of the programs in the computer from the
special of the peripheral devices. For example the I/O manager might translate the
keyboard character codes into the coding system used by the rest of the computer.
With a good O.S, it is possible to add a hard disk or a faster printer to the computer system
just by modifying the I/O manager without making any changes to other software).
This is called device independence. An even stronger from of hardware independence,
called machine independence (or software portability). Allows application software to be
moved from one type of computer system to another without programming changes.
5
Lecture Four Lecture 8 -Language Programming 1ST STAGE
File manager: anything on disk is stored in file. Each file has its. Own name and stores
one type of information, either program or data. A data file might be a digitized picture,
while a program file might be a Basic program or word processor.
Whatever the contents of a file. The file manager takes care of saving, deleting, coping,
loading.
As we know data are stored on disks as individual bytes, grouped into sectors, with each
sector forming part of a track people think of a data file in logical terms as a letter are
stored physically on the disk in tracks and sectors.
The file manager translates between the logical and the physical arrangement of data
maintaining a file allocation table (FAT) for each disk.
The file allocation table (FAT) is an index telling where each file is stories.
Another function of the file manager is to format(also called initialize) disk. Formatting a
disk involves erasing the disk and giving it an empty file allocation table.
Disk come from the manufacture in blank (or un formatted) condition, files can not be
stored on an unformatted disk.
Disk cannot be used until it has been formatted, but formatting a disk by mistake erases its
content completely.
Command processor:-
The command processor communicates between the user and the rest of the operating
system. It accepts commands and the user makes sure they are valid, and than takes the
appropriate action.
Ex:- If the ask to copy(file name) and call the new file, the command processor will
translate the command and can the request to the file manager. If the disk does not have
enough room to store, then the file manager sends a coded error massage, which the
command processor might translate to, Insufficient free spare on disk command a aborted.