3 ms·
This sort of thing makes me think fondly of using Fortran many years ago (I forget which version). Then every subroutine was separately compiled into a separat
by kwhitefoot 5y ago
This sort of thing makes me think fondly of using Fortran many years ago (I forget which version).
Then every subroutine was separately compiled into a separate object file. The linker linked only those that were actually used (if I remember correctly).
Of course there was no dynamic dispatch so it wasn't difficult to prove what was and wasn't needed.
- mananaysiempre 5y agoNative-code libraries that are not hostile to static linking usually do this kind of thing even now, and linkers will, indeed, figure out which parts are needed and pull out only those. Even Glibc does it when statically linked, though its sprawling dependency graph makes the result less than helpful.