使用DLL有什么优缺点? [英] what are the pros and cons of using a DLL?

查看:324
本文介绍了使用DLL有什么优缺点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Windows仍然使用DLL和Mac程序似乎根本不使用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆