Friday, July 13, 2012

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 reduces the overall footprint of memory as against the static library because linking to static libraries includes the actual code for the library function(s)/procedure(s) with the executable. Dynamic Libraries are kept at specific location and are usually shared among all the processes that use.

No comments :