Professional Documents
Culture Documents
2. What is the difference in the representation of the assembled code and the code
during loading? Which other representations can be used to store object program?
4. How many passes does an absolute loader require to load an object program into
the memory?
5. If operating system is the first program to be run by the computer, which loader is
needed to load the operating system? Explain the loader with its source code for
SIC/XE machine
Explain GETC subroutine where all codes less than hex 30 are skipped
and values above hex 30 are considered valid characters
Relocation
10. Which relocation method is used for specifying relocation as a part of SIC/XE
object program during loading? Give the SIC/XE relocation loader algorithm and
explain the same.
A modification record is used to describe each part of the object code that
must be changed when the program is relocated.(Refer page 136 and fig
3.5)
Give algorithm and explain
11. Which relocation method is used for specifying relocation as a part of SIC object
program during loading? Give the SIC relocation loader algorithm and explain the
same. Justify the reason for choosing this method for specifying relocation in SIC
object programs during loading.
13. Explain the procedure of program linking when sub-programs use external
reference.
14. How are external definition and external reference specified in an object
program? Explain how actual address is calculated during loading?
Using D and R records (see fig. 3.11) and also explain how they are
specified in modification record
Explain the calculation of actual address of a label externally referred.
(see fig. 3.12(b))
17. Explain the pass 1 of linking loader. What does ESTAB contain at the end of pass
1?
18. What is a load map and where is it used? Give an example of a load map.
Define load map.
Its is used in program debugging
Refer page 149
19. Is the algorithm for linking loader completely efficient? Justify your answer.
Its not very efficient algorithm. However a slight change to object
program format will make the algorithm more efficient.
It is because in object program we use names of symbols referenced
externally in object code.
20. Is it possible to increase the efficiency of the linking loader algorithm? If so, how
can it be done?
Yes.
It can be done using reference numbers. (For explanation refer page 152
n153)
21. Explain the use of reference numbers in modification record. How does it change
the object program format? Explain with an example.
Say what reference numbers are and why they are used.
Take an example and show the object code format used.
Also explain how it will affect the efficiency of the linking loader
algorithm
22. Explain automatic library search/ automatic library call. Give the role of ESTAB
in automatic library search.
23. How can we override the standard sub routines in library? Explain with an
example.
24. In which case library search can be inefficient? Explain how this inefficiency can
be overcome.
25. Explain the loader options with example.
26. Can a programmer specify his own library? If yes, how can it be done?
27. With an example explain how a loader can be instructed not to resolve references
to some sub-routines during library search.
28. What is a load module or an executable image? How is it produced?
29. Explain the difference between the linking loader and linkage editor. Analyze
which one is more efficient.
30. Explain with examples how the loader options can be used in a load module or
executable image to replace a linked subroutine.
31. What is dynamic linking/dynamic loading/load on call? What are the advantages
of dynamic linking? Explain with example.
32. Bootstrap loader is the first program to be executed on start up in a machine.
What are the different ways of accomplishing this?
33. Explain the MS-DOS linker for Pentium and other x86 systems.
34. Explain the MS-DOS object module. How does MS-DOS LINK combine two or
more object modules to produce a complete executable program?
35. What are the different types of linkers provided by SunOS? Explain the different
types of linkers.
36. Explain the Cray MPP linker.