Summary

OS provides foundation for libraries

Applications

Normal Compilation in C

Object files  are just ELF files with code for functions!

Object files .o are just ELF files with code for functions!

Static libraries are included at link time

Static libraries are included at link time

Dynamic Libraries

Loaded into memory at runtime, reducing size of executable, rather than being copied into the executable during the linking phase

Multiple applications can use the same library

Multiple applications can use the same library

Static vs Dynamic Libraries