当前位置:网站首页>static linking and dynamic linking
static linking and dynamic linking
2022-08-05 10:01:00 【Jiangnan has no ancestors】
Links can be either dynamic or static:
Dynamic linking:
In the linking stage, the .o files generated by the assembly are linked and packaged together with the required libraries into an executable file, which becomes a part of the executable program.
Advantages:
Fast running speed, executable program has all the contents of the program running, less dependence on the running environment, and good compatibility.
Disadvantages:
The program is large and wastes space. Each executable program has a copy of the static library. If the static library is updated, it needs to be recompiledlink
Dynamic linking:
The dynamic library is loaded when the program is running. If different executable programs call the same library, there is only one instance of the dynamic library in the memory
Advantages:
The program is small in size, saves space, and is easy to update
Disadvantages:
Linking when the program is running, there is a certain performance loss compared to static linking
边栏推荐
猜你喜欢
随机推荐
C语言的高级用法
开源一夏|OpenHarmony如何查询设备类型(eTS)
你最隐秘的性格在哪?
leetcode: 529. Minesweeper Game
The technological achievements of Shanghai Konan were selected into the "2021 Shanghai Network Security Industry Innovation Research Achievement Catalog" by the Municipal Commission of Economy and Inf
Which big guy has the 11G GI and ojvm patches in April or January 2020, please help?
egg框架使用(一)
What is CRM Decision Analysis Management?
Oracle temporary table space role
华为轻量级神经网络架构GhostNet再升级,GPU上大显身手的G-GhostNet(IJCV22)
19. Server-side session technology Session
企业的数字化转型到底是否可以买来?
无题一
PAT Class B-B1019 Digital Black Hole (20)
数据中台建设(十):数据安全管理
NowCoderTOP35-40 - continuous update ing
seata源码解析:事务状态及全局锁的存储
HStreamDB Newsletter 2022-07|分区模型优化、数据集成框架进一步完善
仿SBUS与串口数据固定转换
eKuiper Newsletter 2022-07|v1.6.0:Flow 编排 + 更好用的 SQL,轻松表达业务逻辑