4 ms·
From the video: > Mergeable metadata roughly doubles the size of the dylib. I think they just bundle the static lib and dynamic lib together. I think there is
by planede 3y ago
From the video:
> Mergeable metadata roughly doubles the size of the dylib.
I think they just bundle the static lib and dynamic lib together. I think there is a wasted opportunity to do something much smarter here, but maybe that will follow.
We already compile static libraries with PIC, and use the same object files to compile dynamic libraries. In theory the two could be bundled in a way that shares most of the data, as the machine code is literally the same. They are both linked from the same object files.
- viraptor 3y agoReminds me of some recent work in nixpkgs where the idea is to get a mostly-static builds that only depend on libsystem on MacOS. https://github.com/NixOS/nixpkgs/issues/214611 https://github.com/NixOS/nixpkgs/issues/214611 At some point the difference does seem to become mostly "what do you do during linking".