当前位置:网站首页>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
边栏推荐
猜你喜欢

Bias lock/light lock/heavy lock lock is healthier. How is locking and unlocking accomplished?

JS逆向入门学习之回收商网,手机号码简易加密解析

DFINITY 基金会创始人谈熊市沉浮,DeFi 项目该何去何从

Open Source Summer | How OpenHarmony Query Device Type (eTS)

电竞、便捷、高效、安全,盘点OriginOS功能的关键词

MySQL事务

高质量 DeFi 应用构建指南,助力开发者玩转 DeFi Summer

egg框架使用(一)

2022.8.3

Advanced usage of C language
随机推荐
MySQL内部函数介绍
正则表达式replaceFirst()方法具有什么功能呢?
2022.8.3
Is there a problem with writing this?How to synchronize data in sql-client
【MindSpore易点通机器人-01】你也许见过很多知识问答机器人,但这个有点不一样
IO stream articles -- based on io stream to realize folder copy (copy subfolders and files in subfolders) full of dry goods
Keil升级到AC6后,到底有哪些变化?
js graphics operation one (compatible with pc, mobile terminal to achieve draggable attribute drag and drop effect)
还在找网盘资源吗?快点收藏如下几个值得收藏的网盘资源搜索神器吧!
ffmpeg drawtext add text watermark
How to realize the short press and long press detection of the button?
手写柯里化 - toString 理解
PHP 操作mangoDb
营销建议 | 您有一份八月营销月历待查收! 建议收藏 !
dotnet OpenXML 解析 PPT 图表 面积图入门
开发常用手册链接分享
Which big guy has the 11G GI and ojvm patches in April or January 2020, please help?
After Keil upgrades to AC6, what changes?
leetcode: 529. Minesweeper Game
无题五