Properties Static libraries Dynamic libraries
Linking time In the last step of compilation
process
During linking process when
executable file and libraries are
added to memory.
Performer Linker Operating system
Memory Increase the size of the program
because the static libraries
functions are built in the
executable file.
Smaller, because multiple
programs call the library, only one
instance of the shared library is
needed in memory.
Updates If are changes on libraries, the
executable file must be
recompiled.
If changes in libraries, don´t need
to recompile.
Time The executable files is loaded Ton
memory every time is executed,
meaning more time to execute.
Are faster because the library is
already in the memory.
Compatibility issues Not possible, due to all the code is
in a unique file.
Depends on have a compatible
library. If the library is removed,
the program wouldn't work.

static libraries and dynamic libraries

  • 1.
    Properties Static librariesDynamic libraries Linking time In the last step of compilation process During linking process when executable file and libraries are added to memory. Performer Linker Operating system Memory Increase the size of the program because the static libraries functions are built in the executable file. Smaller, because multiple programs call the library, only one instance of the shared library is needed in memory. Updates If are changes on libraries, the executable file must be recompiled. If changes in libraries, don´t need to recompile. Time The executable files is loaded Ton memory every time is executed, meaning more time to execute. Are faster because the library is already in the memory. Compatibility issues Not possible, due to all the code is in a unique file. Depends on have a compatible library. If the library is removed, the program wouldn't work.