当前位置:网站首页>Static library vs shared library
Static library vs shared library
2022-07-03 11:11:00 【MrPeng1991】
- Static library
Before the shared library appeared , Public functions exist in the form of static libraries , Package multiple object files of the general function module , The program that uses it only needs to specify this library file when linking , The linker will extract the functional code used from this library and copy it to the target program , There is no need to recompile these general function codes every time .
Static library embodies a good idea of modularization , But with the development of computer industry , The static library gradually exposes two serious problems
- Large disk and memory space . Although the static library accelerates the compilation speed , It improves the efficiency of collaboration between different departments , But in the program linked by each static library , Will save a copy of the referenced general function code , And at runtime , Each copy will occupy the corresponding physical memory .
- Upgrading the version of the library is very troublesome , Once the public library is modified , Every program that references him needs to be relinked with the new version of the Library . In a scenario where libraries and applications are maintained by different companies or organizations , The upgrade work has become extremely complex , If there is bug Repair , All applications using this library need to be upgraded separately
- Shared library
To solve these two problems , Shared library technology came into being .
First , Applications that use shared libraries when compiling links , Do not copy the functions in the library to the target file , Only one reference is recorded in the target file , Mark the library function referred to , Until the program runs Only dynamic connector can locate the position of function code , Therefore, the volume of the generated executable program is significantly reduced .
secondly , Each shared library has only one copy in physical memory , Multiple applications will map the same executable file in their virtual address space , Therefore, it can save objective memory space .
This working mode of shared library greatly facilitates the upgrading of the Library , When the shared library releases a new version , Users only need to upgrade this shared library , All applications that use this library can automatically get the features in the new library or bug Repair , Instead of upgrading each application separately .
边栏推荐
- 表空间创建管理及控制文件管理
- 项目管理精华读书笔记(七)
- QT: QSS custom qtabwidget and qtabbar instances
- Qt:qss custom qlineedit instance
- Basic theoretical knowledge of software testing -- app testing
- 项目管理精华读书笔记(六)
- IIS does not take effect after modifying the configuration information
- Multiple IO transfer - preamble
- [proteus simulation] 16 channel water lamp composed of 74hc154 four wire to 12 wire decoder
- Software testing (test case) writing: vulgar, native and skillful
猜你喜欢

游戏测试相关 测试一个英雄的技能(春招被问比较多的一道题)
![[true question of the Blue Bridge Cup trials 44] scratch eliminate the skeleton Legion children programming explanation of the true question of the Blue Bridge Cup trials](/img/e0/c2b1fbe99939d44201401abf1b5a72.png)
[true question of the Blue Bridge Cup trials 44] scratch eliminate the skeleton Legion children programming explanation of the true question of the Blue Bridge Cup trials

What kind of living condition is a tester with a monthly salary of more than 10000?

Expandablelistview that can expand and shrink (imitating the list page of professional selection of Zhilian recruitment)

Communication software development and Application

月薪过万的测试员,是一种什么样的生活状态?

我,大厂测试员,降薪50%去国企,后悔了...

8年测试总监的行业思考,看完后测试思维认知更深刻

可以写进简历的软件测试电商项目,不进来get一下?

Exclusive analysis | truth about resume and interview
随机推荐
Qt:qss custom qscrollbar instance
ORACLE 11G 单机冷备数据库
Differences among norm, normalize and normalized in eigen
Basic theoretical knowledge of software testing -- app testing
Tencent micro app to get wechat user information
Comment réaliser des tests automatisés pour les tests logiciels embarqués?
Is it OK to test the zero basis software?
Hal - General
Error installing the specified version of pilot
Cause: org. apache. ibatis. builder. Builderexception: error parsing SQL mapper configuration problem analysis
In the middle of the year, I have prepared a small number of automated interview questions. Welcome to the self-test
[proteus simulation] 16 channel water lamp composed of 74hc154 four wire to 12 wire decoder
IIS does not take effect after modifying the configuration information
《通信软件开发与应用》
搭建ADG后,实例2无法启动 ORA-29760: instance_number parameter not specified
Latest sales volume of pinduoduo
Stack, monotone stack, queue, monotone queue
POI excel 单元格换行
one hot 独热码
Logstash backup tracks the data records reported