对于程序在微 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/