Solution Manual for Financial Accounting, 11th Edition by Robert Libby, Patri...
Low level programming: C libraries
1. Low level programming in C
Main differences between
Static libraries
Dynamic libraries
2. if(Static libraries != dynamic libraries)
printf(“%s/n”, explain_why;
Static library Dynamic library
The code to run the file is in one
executable file and gets copied into
target application which create
standalone executable.
Only the address of the library is
provided in the target program so every
program can access them without
creating new copies.
It is locked into the program at compile
time so can only be modified in a new
compilation process.
It act as separate file out of executable
so can be modified at any time without
recompilation.
Every file in the program must have its
own copy of library at compile time.
Resides outside the executable. The
program makes only one copy of library
at compile time.
More large file size. Smaller due to single copy.
3. Static library Dynamic library
Takes more time to execute, because
the step of library loading into memory
is done every time the program is
executed.
Is faster as the library code is already
present in the memory.
No compatible issues because it resides
in executable file.
If library becomes corrupt or removed
then the executable file will not work.