Patent ID: 11886222
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 0:
1. A dynamic link library loading method implemented by an electronic device, wherein the dynamic link library loading method comprises:
obtaining a first request of an application program for loading a first dynamic link library;
determining, in response to obtaining the first request, whether an identifier of the first dynamic link library is in a list of loaded dynamic link libraries; and
performing step A, step B, and step C when the identifier is not in the list,
wherein step A comprise allocating a handle to the first dynamic link library and adding the identifier and the handle to the list,
wherein step B comprises determining whether the first dynamic link library is an integrated dynamic link library and performing step 1 and step 2 in sequence when the first dynamic link library is the integrated dynamic link library,
wherein step 1 comprises adding identifiers of M dynamic link libraries for integration and the handle to the list, wherein the first dynamic link library is based on source code of the M dynamic link libraries, and wherein M is a positive integer greater than one; and
wherein step 2 comprises relocating the first dynamic link library based on the handle and loading the first dynamic link library into a running memory of the electronic device; and
wherein step C comprises returning the handle to the application program.