Unlock instant, AI-driven research and patent intelligence for your innovation.

Dynamic link library loading method and device

A dynamic link library and static link library technology, applied in the computer field, can solve the problems of high time cost and dynamic link library dependence, etc.

Active Publication Date: 2021-08-03
HUAWEI TECH CO LTD
View PDF7 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

And the dynamic link library may also depend on other dynamic link libraries
Therefore, the application not only needs to relocate the dynamic link library, but also needs to relocate other dynamic link libraries that the dynamic link library depends on in order to achieve normal operation, which will easily lead to a large time cost

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Dynamic link library loading method and device
  • Dynamic link library loading method and device
  • Dynamic link library loading method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0052] It should be understood that "at least one" in the embodiments of the present application refers to one or more. "Multiple" means two or more. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single item(s) or plural item(s). For example, at least one item (piece) of a, b or c can represent: a, b, c, a and b, a and c, b and c, or seven situations of a, b and c. Each of a, b, and c can be an element itself, or a set containing one or more elements. The character " / " generally indicates that the contextual objects are an "or" relationship. "And / or" describes the association relationship of associated objects, indicating that there can be three types of relationships. For example, A and / or B may mean that A exists alone, A and B exist simultaneously, and B exists alone. Wherein A and B can be singular or plural.

[0053] In this application, "exemplary," "in some embodiments," "in other...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a dynamic link library loading method and device, and relates to the technical field of computers. The method is applied to the electronic equipment and comprises the following steps: in response to a request for loading a first dynamic link library, judging whether an identifier of the first dynamic link library is in a loaded dynamic link library list or not; if not, allocating a handle to the first dynamic link library, and adding an identifier of the first dynamic link library and the allocated handle to the loaded dynamic library list; judging whether the first dynamic link library is an integrated dynamic link library or not; if yes, adding the identification of the M integrated dynamic link libraries and the distributed handle into the loaded dynamic link library list, and obtaining the first dynamic link library by compiling source codes of the M integrated dynamic link libraries through a compiler; and loading the first dynamic link library into a running memory of the electronic equipment according to the handle allocated for the first dynamic link library. According to the technical scheme, waste and time expenditure of running memory space can be reduced.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a method and device for loading a dynamic link library. Background technique [0002] In an electronic device, the running of different application programs can share codes or variables through a dynamic link library (dynamic link library, DLL), which helps to save the overhead of disk and running memory space. Wherein, the dynamic and static libraries are organized by sections, and each section is aligned with pages (for example, 4KB). However, when the actual size of the segment is less than the size of the page, it is easy to cause a waste of running memory space. Especially when the number of dynamic link libraries in the electronic device is large, the waste of running memory space may be more serious. Taking 200 dynamic link libraries, each dynamic link library includes code segment, data segment and BSS segment, and each segment is 4KB aligned as an example, ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/445
CPCG06F9/44521
Inventor 王涛孙文涌
Owner HUAWEI TECH CO LTD