Professional Documents
Culture Documents
Linking loaders
Linkage editors
Dynamic linking
Linking Loader
Linkage Editors
A linkage editor
Linking loader
Linkage editor
Linking loader
Linkage editor
READR(FTNLIB)
WRITER(FTNLIB)
BLOCK(FTNLIB)
DEBLOCK(FTNLIB)
ENCODE(FTNLIB)
DECODE(FTNLIB)
FTNIO(SUBLIB)
Linking Time
Advantages
Pass control to OS
s dynamic loader
OS checks the routine in memory or not.
Jump to the
loaded routine
Delayed binding
By OS
Bootstrap loader
An intermediate solution
Have a built-in hardware function that reads a fixedlength record from some device into memory at a fixed
location, then jump to execute it.
Appendix
main.c
a.c
int a()
{
return 5;
}
int a1()
{
return 8;
}
b.c
int b()
{
return 5;
}
gcc c main.c
gcc c a.c
gcc c b.c
ar t libtmp.a
ar d libtmp.a b.o
Linking editor
References