Download sheet1

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
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
aError
message
Assembly
language
program
………………
………..
b-
1
Start
Distribute into modules
Source
module
#1
Compiler/
Assembler
………..
Source
module
#2
Source
module
#n
Compiler/
Assembler
Compiler/
Assembler
………..
………..
Library
module
………
Executable
module
………….
Loader
………….
Error
…………….
Stop
2
Answer
1a- 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.
2Application 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
43
a- Syntax analysis.
b- Lexical analysis.
c- Semantic analysis.
d- Code optimization.
e- Target code generation.
5a-
Error
message
Assembly
language
program
Assembler
Object
module
b-
4
Start
Distribute into modules
Source
module
#1
Compiler/
Assembler
Object
module
#1
Source
module
#2
Source
module
#n
Compiler/
Assembler
Compiler/
Assembler
Object
module
#2
Object
module
#n
Library
module
Linker
Executable
module
Library
module
Loader
Process in
memory
Error
Debugger
Stop
5