DLLs
Dynamic Link Library, or DLL, is a module that contains code and data that can be used by multiple programs concurrently. In Windows, DLLs enable code reuse and modularization by allowing common functionality—such as file I/O, graphics, or utility routines—to reside in a single file that several applications can load as needed. A DLL can also contain resources such as icons or strings.
How it works: Executables that use a DLL declare imports. At load time, the operating system resolves
Usage and benefits: DLLs reduce memory usage and disk space by sharing a single copy of code
Dynamic loading and flexibility: Programs can delay loading a DLL until its functionality is needed, using
Security and portability: Windows supports features like side-by-side assemblies, ASLR, and code signing to mitigate risks.