3 ms·
One reason for this is separate compilation, and linkers not being required to perform that level of static analysis, besides them lacking the necessary informa
by layer8 2y ago
One reason for this is separate compilation, and linkers not being required to perform that level of static analysis, besides them lacking the necessary information about (e.g.) inlined functions or struct layouts.
Note that in case of shared libraries (DLLs, .so), the OS loader/linker would have to perform that analysis.