当前位置:网站首页>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
边栏推荐
- js graphics operation one (compatible with pc, mobile terminal to achieve draggable attribute drag and drop effect)
- Concurrent CAS
- 21 Days of Deep Learning - Convolutional Neural Networks (CNN): Weather Recognition (Day 5)
- Pycharm 常用外部工具
- 技术干货 | 基于 MindSpore 实现图像分割之豪斯多夫距离
- 韦东山 数码相框 项目学习(六)tslib的移植
- 基于MindSpore高效完成图像分割,实现Dice!
- 静态链接和动态链接
- 上海控安技术成果入选市经信委《2021年上海市网络安全产业创新攻关成果目录》
- ffmpeg drawtext 添加文本水印
猜你喜欢
随机推荐
Dry goods!Generative Model Evaluation and Diagnosis
2022-08-01 Review the basic binary tree and operations
C语言的高级用法
蚁剑webshell动态加密连接分析与实践
Keil升级到AC6后,到底有哪些变化?
语音社交软件开发——充分发挥其价值
电竞、便捷、高效、安全,盘点OriginOS功能的关键词
leetcode: 529. 扫雷游戏
First Decentralized Heist?Loss of nearly 200 million US dollars: analysis of the attack on the cross-chain bridge Nomad
DFINITY 基金会创始人谈熊市沉浮,DeFi 项目该何去何从
hcip BGP 增强实验
Egg framework usage (2)
歌词整理
[Unity] [UGUI] [Display text on the screen]
ffmpeg drawtext 添加文本水印
5. Deploy the web project to the cloud server
无题十一
【Office】Microsoft Office下载地址合集(微软官方原版离线安装下载)
长达四年的减肥记录
MySQL事务