System Software Solve Paper
System Software Solve Paper
System Programming:
Part – A
1. What is a linker.
Linker is a computer system program that takes one or more object files and
combines them into a single executable file.
2. Define formal system.
Formal system is an abstract structure used for inferring thermos from
axioms according to set of rules.
3. What is an assembler.
Assembler is a type of computer program that interprets software programs
written in assembly language into machine language.
4. Give the syntax of a macro.
macro – name (arg1, arg2 …. argN) or name macro parameters
5. Define overlays.
Overlays is a programming method that allows programs to be larger than
the computer’s main memory.
6. What is a pool table.
Pool table is a lookup table used to hold literals during assembly and
execution.
7. What are the function of loader.
Allocation, Linking, Relocation, Loading.
8. How many bytes are used in RR and SS instruction registers.
RR – 2 bytes, SS – 6bytes.
9. Define siblings.
The node which belongs to the same parent are called as siblings.
Part – B
10. Explain compile and go loader.
In this type of loader, the machine code in obtained and it is directly put in
the main memory at some known address. That means the assembler runs in one
part of memory and the assembled machine instructions and data is directly put
in to their assigned memory locations. After completion, the assembly process
assigned the starting address of the program to the location counter. The typical
example ie WATFUR – 77 , a FORTRAN compiler which user such “load and
go scheme. This loading scheme is called as “assemble and go.
Main memory
+ *
B C D E
Part – C
15. Draw pass I of an assembler.
16. Explain the structure of a compiler with a help of neat
diagram.
High level
Language
Lexical Analyzer
Syntax Analyzer
Semantic Analyzer
Symbol Error
table handling
Code optimizer
Assembly code
Lexical analyzer: it is also called scanner. It takes the output of the preprocessor
as the input which is in a pure high level language, it also removes lexical
errors.
Syntax analyzer: it is sometimes called a parser. It constructs the parse tree. It
takes all the tokens one by one and uses context free grammar to construct the
parse tree.
Semantic analyzer: it verifies the parse tree, whether its meaningful or not. It
furthermore produces a verified parse tree. It also does type checking , label
checking, and flow control checking.
Intermediate code generator: it generates intermediate code which is a from that
can be readily executed by a machine we have many popular intermediate
codes. Intermediate code is converted to machine language using the last two
phases which are platform dependent.
Code optimizer: it transforms the code so that it consumes fewer resources and
produces more speed. The meaning of the code being transformed is not altered.
Optimization can be categorized in two types: machine dependent and machine
independent.
Target code generator: the main purpose of the target code generator is to write
a code that the machine can understand and also register allocation, instruction
selection, etc.
Part – D
19. Explain IBM 360 machine structure with a help of neat
diagram.
Part – B
13. Write any three different between assembler and compiler.
Assembler Compiler
Assembler coverts the assembler Compiler converts the source code
code into the machine code. written by the programmer to a
machine level language.
Assembler input assembly language Compiler input source code.
code.
Part – C
Part – D