2 ms·
This becomes the same question as when and why are dynamic libraries useful over static linking! Suppose whatever you are shipping consists of five executables
by kazinator 2y ago
This becomes the same question as when and why are dynamic libraries useful over static linking!
Suppose whatever you are shipping consists of five executables, which have a few hundred kilobytes of their own code and a 5 megabyte library. If they statically absorb the library, they all become 5.5 megabyte binaries.
Adjust that to whatever sizes you would consider relevant.
You can make it clear when a bug is fixed in a library or one of the executables. If you have a patch update, users can see that only a shared library changed or only a certain executable.
When hunting a bug, you may have certain possibilities (within limits that depend on your library API maintenance), like trying an older executable with the same library, or older library with the same executable.
- vlovich123 2y agoBundle the executables into a single larger mega-executable with symlinks as the “true” entrypoint name.