c - 嵌入式系统 : static or dynamic linking

标签 c embedded

对于程序在微 Controller 上独立运行的嵌入式系统:

程序总是静态链接的吗?或者在某些情况下它可能是动态链接的?

最佳答案

来自 Wikipedia :

a dynamic linker is the part of an operating system that loads and links the shared libraries needed by an executable when it is executed (at "run time"), by copying the content of libraries from persistent storage to RAM, and filling jump tables and relocating pointers.

所以这意味着动态链接只有在以下情况下才有可能:
1) 你有某种操作系统
2) 你有某种持久存储/文件系统。

在裸机微型计算机上通常不是这种情况。

关于c - 嵌入式系统 : static or dynamic linking,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30675681/

相关文章:

linker - 构建用于Nordic SDK程序的静态rust库时多次定义 `memset'

embedded - 为什么静态随机存取存储器 (SRAM) 不需要内存 Controller ?

c - 标识符未在 c 中加载

c - 子进程死亡后,子进程中声明的所有指针都会被释放吗?

C - 时间值到 uint64_t

c++ - 嵌入式 C/C++ : undefined reference of an existing symbol

c - 功能根本没有执行或没有正确执行

c - 在c中设计这个结构的最佳方法是什么?

c - 如何使用相同的代码复制在文件中创建的完全相同的结构?

c - 我如何通过慢速 CAN 总线进行 printf 样式调试 - 在远程工具而不是嵌入式系统上使用常量字符串