首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

关于动态链接库静态联接库说法正确的是哪个

2013-03-12 
关于动态链接库静态连接库说法正确的是哪个?是一个笔试题求解: 关于动态链接库静态连接库说法正确的是哪个

关于动态链接库静态连接库说法正确的是哪个?
是一个笔试题求解: 关于动态链接库静态连接库说法正确的是哪个?

In user mode application development, sometimes we choose to use dynamic linked library instead of static linked library. That is because:


A. The dynamic link library can be upgraded without requiring applications to be re-linked or re-compiled.
B. Runtime loading dynamic library will be faster than static library.
C. Calling functions in dynamic library will be faster than static library.
D. Dynamic library enable lots of memory sharing when mutiple apps are using the same libraries at the same time. This is also true for saving disk space.
E. Dynamic link library can be explicitly loaded/unloaded at runtime, this helps application provide optional features.

[解决办法]
A对
B错,静态库快
C错,静态库快
D错,有助于内存共享,节省内存空间是对的,但不能节省磁盘空间
E对
[解决办法]
D从某些方面也是对的,每个EXE文件都小了,也是减少了硬盘空间使用啊。
[解决办法]

引用:
A对
B错,静态库快
C错,静态库快
D错,有助于内存共享,节省内存空间是对的,但不能节省磁盘空间
E对


AE对,

但是D为什么错? 因为多个Application不需要静态链接一个Lib,Application的exe文件大小减少了啊。
[解决办法]
引用:
AE对,

但是D为什么错? 因为多个Application不需要静态链接一个Lib,Application的exe文件大小减少了啊。


SORRY,我考虑不周,可以节省很多磁盘空间,对于调用很多系统DLL的应用来说,可以节省相当大的空间

热点排行