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

A kind of dynamic loading method, object file making method and device

A dynamic loading and file technology, applied in the direction of program control device, multi-program device, program loading/starting, etc., can solve the problem of large resource consumption and achieve the effect of saving resources

Active Publication Date: 2021-10-15
HUAWEI TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Embodiments of the present invention provide a method and device for loading target files to solve the technical problem that the current dynamic loading method consumes too much resources

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
  • A kind of dynamic loading method, object file making method and device
  • A kind of dynamic loading method, object file making method and device
  • A kind of dynamic loading method, object file making method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048] The following will clearly and completely describe the technical solutions provided by the embodiments of the present invention with reference to the drawings in the embodiments of the present invention.

[0049] In the following, some terms used in the embodiments of the present invention are explained to facilitate the understanding of those skilled in the art.

[0050] (1) Object file, a file used to store symbols (or codes). An object file usually contains multiple symbols, and symbols can be variables or functions. After the terminal device loads the target file, it can run the symbols stored in it to realize specific functions. There are many types of object files, such as source files of application files, executable and linkable format (ELF) files, dynamic link library files, redirectable files, shared object files, core dump files, and so on.

[0051] (2) The dynamic link library file is a non-executable binary program file, which contains symbols (codes) and ...

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

A dynamic loading method, a method and a device for making an object file. The method includes: during the running of the application program in the terminal device, loading a dynamic link library file, the dynamic link library file contains symbols capable of realizing specific functions in the application program; the symbols include functions and / or or variable; read the first array index index from the source file of the application; determine the first symbolic address corresponding to the first index from the global symbol table; the first symbolic address is used to indicate that the The physical address of the symbol of the specific function; calling the symbol from the dynamic link library file according to the first symbol address to complete the running of the application program. In this dynamic loading process, the index occupies less memory space and saves resources.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of software dynamic loading, and in particular to a dynamic loading method, a method and a device for making an object file. Background technique [0002] With the development of computer technology, terminal devices have more and more functions. For developers, each additional function means adding several applications. Therefore, developers need to consider different Whether the business requirements of the application programs overlap. For the overlapping parts, the code can usually be compiled into a dynamic link library file. When the application program is executed, the dynamic link library file can be loaded. This process is called dynamic loading. process. Therefore, with dynamic loading, developers do not need to write the same code in different programming tasks (such as applications), that is, a dynamic link library can serve multiple applications, which greatly saves th...

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 Patents(China)
IPC IPC(8): G06F9/445
CPCG06F9/44521G06F9/44505G06F9/44578G06F9/54
Inventor 陈新中黄基松黄雁辉
Owner HUAWEI TECH CO LTD