Académique Documents
Professionnel Documents
Culture Documents
The source program written in assembly language or high level language will be converted into
object program, of course by considering macros within the source code. This conversion is
either from the assembler or complier contains translated instructions and data values from the
source program or specific addresses in memory where these items are to be loaded for
execution. The linker combines two or more separate object program and supplies the
information needed to allow references between them. Loader loads an executable program and
starts its execution.
1
BNMIT-ISE
2
BNMIT-ISE
Object program
3
BNMIT-ISE
Absolute loader operation is simple because our loader doesnt need to perform neither linking
nor program relocation.
All functions are accomplished in one pass
The header record is checked to verify that the correct program has been
presented for loading
Text record is then read and object code it contains is moved to the indicated
address in memory
When the End record is encountered, the loader jumps to the specified address to
begin execution of the loaded program
The following figure shows a representation of the object program after loading. The contents of
memory for which there is no text record are shown as xxxx. This indicates that the previous
contents of these locations remain unchanged.
Memory address
0000
0010
xxxxxxxx
xxxxxxxx
xxxxxxxx
xxxxxxxx
xxxxxxxx
xxxxxxxx
xxxxxxxx
xxxxxxxx
0FF0
1000
1010
1020
1030
xxxxxxxx
14103348
20613C10
36482061
000000xx
xxxxxxxx
20390010
0300102A
0810334C
xxxxxxxx
xxxxxxxx
36281030
0C103900
0000454F
xxxxxxxx
xxxxxxxx
30101548
102D0C10
46000003
xxxxxxxx
2030
2040
2050
2060
2070
2080
xxxxxxxx
205D3020
392C205E
00041030
2C103638
xxxxxxxx
xxxxxxxx
3FD8205D
38203F10
E0207930
20644C00
xxxxxxxx
xx041030
28103030
10364C00
20645090
0005xxxx
xxxxxxxx
001030E0
20575490
00F10010
39DC2079
xxxxxxxx
xxxxxxxx
Disadvantage
5
BNMIT-ISE
6
BNMIT-ISE
Review questions.
Q. Write short note on absolute loader
Q. Write an algorithm for an absolute loader.
Q. Explain bootstrap loaders.
Q. Write an algorithm for Bootstrap loader.
Q. Briefly explain a simple bootstrap loader with an algorithm
7
BNMIT-ISE