what is the difference between linking and loading

2019-03-12 16:22发布

Does linking and loading of the the dynamic libraries both happen at runtime? or is it that only loading of the library happens at run time?

标签: c compilation
7条回答
再贱就再见
2楼-- · 2019-03-12 16:54

Windows and Unix systems use completely different approaches to Dynamic libraries.

Windows DLLs are not linked. Therefore, you cannot share static objects across DLLs. It's just like a separate program in your address space.

Unix shared objects are really "linked" in run time, just as different modules of the same project, performing symbol resolution.

查看更多
登录 后发表回答