discuss the different types of linking with example
Answers
Explanation:
There are two main categories of linking -
Static Linking and Dynamic Linking.
Static Linking
In computer science, a static library or statically-linked library is a set of routines, external functions and variables which are resolved in a caller at compile-time and copied into a target application by a compiler, linker, or binder, producing an object file and a stand-alone executable.
Examples of static libraries (libraries which are statically linked) are, . a files in Linux and . lib files in Windows.
Dynamic Linking.
In computing, a dynamic linker is the part of an operating system that loads and links the shared libraries needed by an executable when it is executed, by copying the content of libraries from persistent storage to RAM, filling jump tables and relocating pointers.
An example of such an object is the shared object version of the standard C library, libc.so