Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/c/60.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C 通过在任意位置加载库来避免内存碎片_C_Memory Management_Operating System - Fatal编程技术网

C 通过在任意位置加载库来避免内存碎片

C 通过在任意位置加载库来避免内存碎片,c,memory-management,operating-system,C,Memory Management,Operating System,为了避免内存碎片,在我们想要的任何地方加载库都是很有用的。但是,这并不总是可能的,这取决于库的编译方式 我有一道选择题,问 What must we ensure the library adheres to? A. calling conventions B. position independent code C. absolute addressing D. ELF specification 我应该确保库遵守位置独立代码吗?你能解释一下为什么这样做吗?谢谢 请提供更多的上下文。

为了避免内存碎片,在我们想要的任何地方加载库都是很有用的。但是,这并不总是可能的,这取决于库的编译方式

我有一道选择题,问

What must we ensure the library adheres to?

A. calling conventions

B. position independent code

C. absolute addressing

D. ELF specification

我应该确保库遵守位置独立代码吗?你能解释一下为什么这样做吗?谢谢

请提供更多的上下文。