You are on page 1of 5

Sheet (1)

1- Define the following terms


a- System software.
b- Compiler.
2- Compare between system software and application software.
3- What are the examples of system software?
4- A complier implements different tasks throughout different phases. Assign a
phase for each of the following compiling task.
a- Checking the syntactic correctness of the input program.
b- Removing cosmetics from the program.
c- Checking the type of variable and expressions occurring in a program.
d- Eliminating the generated redundant codes.
e- Taking the intermediate code and generating the target code.
5- Complete the following figures
a-
Error
message
Assembly
language ………………
program
………..

b-

1
Start

Distribute into modules

Source Source Source


module module module
#1 #2 #n

Compiler/ Compiler/ Compiler/


Assembler Assembler Assembler

……….. ……….. ………..

Library
……… module

Executable
module

………….
Loader

………….

Error

……………. Stop

2
Answer
1-
a- System softwares are programs used for functioning the computer system, its
maintenance, and for providing the users with user-friendly development
platform for their programs.
b- A compiler is system software that converts a source language program into
an equivalent target language program. It also validates the input program to
be conforming to source language specification.

2-

Application software System software


Written by individual users Written by the manufacturer or system
administrator
Written for particular computational Written to maintain the system and
requirements (calculations, database make it user-friendly
applications)
Its level is far from hardware level Its level is very close to hardware level

3-
(1) Operating systems
(2) Compiler
(3) Assembler
(4) Linker
(5) Loader
(6) Text editor
(7) Debugger
4-

3
a- Syntax analysis.
b- Lexical analysis.
c- Semantic analysis.
d- Code optimization.
e- Target code generation.

5-
a- Error
message
Assembly
language Assembler
program
Object
module

b-

4
Start

Distribute into modules

Source Source Source


module module module
#1 #2 #n

Compiler/ Compiler/ Compiler/


Assembler Assembler Assembler

Object Object Object


module module module
#1 #2 #n

Library
Linker module

Executable
module

Library
Loader module

Process in
memory

Error

Debugger Stop

You might also like