使用DLL有什么优缺点? [英] what are the pros and cons of using a DLL?
问题描述
如果程序安装包含所需的所有DLL,以使其工作效率可以达到100%,那将与静态链接所有的库?
MacOS X与Unix的其他风格一样,使用共享库,这只是另一种形式DLL。
是的,两者都是有利的,因为DLL或共享库代码可以在多个进程之间共享。它由操作系统加载DLL或共享库,并将其映射到使用它的进程的虚拟地址空间。
Windows still use DLLs and Mac programs seem to not use DLL at all. Are there benefits or disadvantages of using either technique?
If a program installation includes all the DLL it requires so that it will work 100% well, will it be the same as statically linking all the libraries?
MacOS X, like other flavours of Unix, use shared libraries, which are just another form of DLL.
And yes both are advantageous as the DLL or shared library code can be shared between multiple processes. It does this by the OS loading the DLL or shared library and mapping it into the virtual address space of the processes that use it.
这篇关于使用DLL有什么优缺点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!