Difference between a static library and a dynamic library?

Explain the difference between a static library and a dynamic library?

Static libraries are loaded when the program is compiled and dynamically-linked libraries are loaded in while the program is running. Dynamic libraries save the RAM space as against the static library because linking to static libraries includes the actual code for the library function(s)/procedure(s) with the executable. DLL code is kept at one location and is usually shared among all the processes that use the DLL.

Explain the difference between a static library and a dynamic library.

- Static library has functionality that bound to a static program at compile time. Every static program has its own copy of library.
- Dynamic libraries are loaded into the memory and binds at run time. The external functionality is accessed at runtime. This process reduces the overall footprint of memory.
Linux - What is LD_LIBRARY_PATH?
LD_LIBRARY_PATH is an environment variable. It is used for debugging a new library or a non standard library......
Linux File Server - What is the file server in Linux server?
What is the file server in Linux server? - File server is used for file sharing. It enables the processes required fro sharing. All the files can be stored......
NFS: What is NFS? What is its purpose?
What is NFS? What is its purpose? - NFS is Network File system. It is a file system used for sharing of files over a network.......
Post your comment