Exp 2 OS
Exp 2 OS
Aim: Write a program for creating a static/dynamic link library for complex number operations
and then test this library through linuxld linker.
Static Linking: The linker copies all library routines used in the program into executable image.
As a result, it requires more memory space. As it does not require the presence of library on the
system when it is running, so it is faster and more portable and there is less chance of error.
Dynamic linking: Dynamic linking is performed during the run time. This linking is
accomplished by placing the name of a shareable library in the executable image. It requires
less memory space as multiple programs can share a single copy of the library.
d. Creating the static library. Compiling the driver program and including the static
library in it.
e. Executing the driver program.
2. Dynamic Linking:
a. After creating the same C, header, and driver files as above, compile the C files.
Creating a dynamic library and compiling the driver program using the dynamic
library.
b. Executing the driver program.