Method and apparatus for “just-in-time” dynamic loading and unloading of computer software libraries
    1.
    发明授权
    Method and apparatus for “just-in-time” dynamic loading and unloading of computer software libraries 有权
    用于“及时”动态加载和卸载计算机软件库的方法和装置

    公开(公告)号:US07171674B2

    公开(公告)日:2007-01-30

    申请号:US09943900

    申请日:2001-08-30

    IPC分类号: G06F9/445

    CPC分类号: G06F9/44521

    摘要: A method and system for providing “just-in-time” dynamic loading and unloading of libraries. Library code is loaded into memory just prior to the actual execution of a routine in that library and is unloaded from memory after the execution of the library routine is completed. According to the present invention, a library structure having a library loader and a library implementation module. The library loader provides the same entry points as the library itself and contains code to drive the loading and unloading of the library implementation module which actually contains the code to implement the library call. At the beginning of the execution of an application or other software module, the library loaders for libraries needed by that application or other software module, are loaded into memory and unloaded upon completion of that application or other software module. The library loaders control the loading and unloading of the library implementation modules, which contain the actual code which implements the library call, so that the library code itself is only in memory while in use during execution of the library call. A sequence of library calls to the same library is preferably detected and managed so as to avoid unnecessary unloading/reloading of the same library.

    摘要翻译: 提供“及时”动态加载和卸载库的方法和系统。 库代码在实际执行该库中的例程之前被加载到内存中,并且在库程序的执行完成后从存储器中卸载。 根据本发明,具有库加载器和库实现模块的库结构。 库加载器提供与库本身相同的入口点,并包含用于驱动实际包含代码以实现库调用的库实现模块的加载和卸载的代码。 在应用程序或其他软件模块执行开始时,应用程序或其他软件模块所需的库的库加载器将在该应用程序或其他软件模块完成时加载到内存中并卸载。 库加载器控制库实现模块的加载和卸载,其中包含实现库调用的实际代码,以便在执行库调用期间,库代码本身只在内存中。 优选地检测和管理对同一库的库调用序列,以避免不必要的卸载/重新加载同一库。

    Method and apparatus for “Just-in-Time” dynamic loading and unloading of computer software libraries
    2.
    发明授权
    Method and apparatus for “Just-in-Time” dynamic loading and unloading of computer software libraries 有权
    “及时”动态加载和卸载计算机软件库的方法和装置

    公开(公告)号:US06314566B1

    公开(公告)日:2001-11-06

    申请号:US09162625

    申请日:1998-09-29

    IPC分类号: G06F9445

    CPC分类号: G06F9/44521

    摘要: A method and system for providing “just-in-time” dynamic loading and unloading of libraries. Library code is loaded into memory just prior to the actual execution of a routine in that library and is unloaded from memory after the execution of the library routine is completed. According to the present invention, a library structure having a library loader and a library implementation module. The library loader provides the same entry points as the library itself and contains code to drive the loading and unloading of the library implementation module which actually contains the code to implement the library call. At the beginning of the execution of an application or other software module, the library loaders for libraries needed by that application or other software module, are loaded into memory and unloaded upon completion of that application or other software module. The library loaders control the loading and unloading of the library implementation modules, which contain the actual code which implements the library call, so that the library code itself is only in memory while in use during execution of the library call. A sequence of library calls to the same library is preferably detected and managed so as to avoid unnecessary unloading/reloading of the same library.

    摘要翻译: 提供“及时”动态加载和卸载库的方法和系统。 库代码在实际执行该库中的例程之前被加载到内存中,并且在库程序的执行完成后从存储器中卸载。 根据本发明,具有库加载器和库实现模块的库结构。 库加载器提供与库本身相同的入口点,并包含用于驱动实际包含代码以实现库调用的库实现模块的加载和卸载的代码。 在应用程序或其他软件模块执行开始时,应用程序或其他软件模块所需的库的库加载器将在该应用程序或其他软件模块完成时加载到内存中并卸载。 库加载器控制库实现模块的加载和卸载,其中包含实现库调用的实际代码,以便在执行库调用期间,库代码本身只在内存中。 优选地检测和管理对同一库的库调用序列,以避免不必要的卸载/重新加载同一库。