4 ms·
It's pretty ironic that dynamic linking's main motivation was to eliminate duplicate code and reduce code size. Deploy a DLL once, every software uses it and do
by maxxxxx 9y ago
It's pretty ironic that dynamic linking's main motivation was to eliminate duplicate code and reduce code size. Deploy a DLL once, every software uses it and doesn't have to include it.
Now it has turned out exactly the opposite way. If we went back to linking object code together we would get smaller sizes. Instead we have to include huge DLLs.
- dfox 9y agoIIRC Windows has pretty involved infrastructure for deduplicating same executable images both in memory and on disk.
- verytrivial 9y ago> dynamic linking's main motivation was to eliminate duplicate code and reduce code size I'm pretty sure the main motivation is/was to allow patching of dependencies independently from applications. Very popular shared libraries might save space overall, but that is a secondary effect.
- maxxxxx 9y agoWhen I started out the main motivation was to get install sizes down. At least on Windows patching never really worked and ended in "DLL hell".