当前位置:网站首页>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
边栏推荐
- 2022/8/4 考试总结
- 科普大佬说 | 港大黄凯斌老师带你解锁黑客帝国与6G的关系
- 深度学习21天——卷积神经网络(CNN):服装图像分类(第3天)
- 高质量 DeFi 应用构建指南,助力开发者玩转 DeFi Summer
- Bias lock/light lock/heavy lock lock is healthier. How is locking and unlocking accomplished?
- 【Unity】【UGUI】【在屏幕上显示文本】
- 无题十二
- uniapp 连接ibeacon
- Handwriting Currying - toString Comprehension
- Pytorch深度学习快速入门教程 -- 土堆教程笔记(三)
猜你喜欢
egg框架使用(二)
mysql索引
eKuiper Newsletter 2022-07|v1.6.0:Flow 编排 + 更好用的 SQL,轻松表达业务逻辑
IDEA执行Test操作导致数据插入时出现了重复数据
leetcode: 529. Minesweeper Game
Hundred lines of code launch red hearts, why programmers lose their girlfriends!
DFINITY 基金会创始人谈熊市沉浮,DeFi 项目该何去何从
Seata source code analysis: initialization process of TM RM client
开源一夏|OpenHarmony如何查询设备类型(eTS)
【MindSpore易点通机器人-01】你也许见过很多知识问答机器人,但这个有点不一样
随机推荐
韦东山 数码相框 项目学习(六)tslib的移植
你最隐秘的性格在哪?
5.部署web项目到云服务器
js劫持数组push方法
hcip BGP 增强实验
如何实现按键的短按、长按检测?
2022.8.3
深度学习21天——卷积神经网络(CNN):天气识别(第5天)
什么是CRM决策分析管理?
无题三
egg框架使用(二)
无题八
What is the function of the regular expression replaceAll() method?
自定义过滤器和拦截器实现ThreadLocal线程封闭
微服务 技术栈
QSS 选择器
Seata source code analysis: initialization process of TM RM client
百年北欧奢华家电品牌ASKO智能三温区酒柜臻献七夕,共品珍馐爱意
无题六
蚁剑webshell动态加密连接分析与实践