我们使用动态类加载来加载用户的库。
本地代码库同样可以动态加载。
可重用的库(包括动态加载的库)。
Reusable libraries (including dynamically loaded libraries).
例如,如果动态链接器不能找到某个给定的程序库,那么它将停止加载程序。
For example, if the dynamic linker can't find a given library, it will abort loading the program.
执行文件I /O,内存映射是一个方便的和高性能的方式,因此,它被用于加载动态库。
Memory mapping is a convenient and high-performance way to do file I/O, so it is used for loading dynamic libraries.
链接阶段是成功的因为符号是解决动态库的加载,没有联系。
Linking phase is successfull because symbols are resolved when dynamic library is loaded, not linked.
在程序载入的同时又程序加载器载一个动态链接库。程序可以从动态链接库中直接调用函数。
DLL loaded by the program loader at the same time as the application program that USES it is loaded. Application programs may call functions from this DLL directly.
位置无关可执行程序(PIE)含有位置无关代码,有点像动态库,因此启动时这些代码会被随机加载到一个地址上。
Position independent executables (PIE) contain position independent code similar to the Shared libraries and therefore such executables get loaded at a randomly chosen address upon startup.
没有预链接的动态库总是会被加载到一个随机选择的地址。
Shared libraries not already prelinked are always loaded at a randomly chosen address.
在程序载入的同时又程序加载器载一个动态链接库。
A DLL loaded by the program loader at the same time as the application program that USES it is loaded.
在程序载入的同时又程序加载器载一个动态链接库。
A DLL loaded by the program loader at the same time as the application program that USES it is loaded.
应用推荐