Shared library

From OSDev.wiki
Revision as of 00:59, 10 September 2018 by osdev>Carver
Jump to navigation Jump to search
This page is a stub.
You can help the wiki by accurately adding more contents to it.

A shared library is a file which is shared between executables.

Usefulness

Some programs may contain identical parts. In the case of a static library, these parts have their own copy in each executable and program size is immense. This means it uses more memory and more disk space. In the case of a shared library, these parts are in a central file, all those unnecessary copies are eliminated and only one is kept. This approach uses less disk space and less memory. This is a bit similar to system calls located only in the kernel file, but used by all other executables. Shared libraries, as all libraries, can contain functions, structures, configuration data and values.

Implementation

TODO