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

A method for dynamic loading of program modules

A program module, dynamic technology, applied in the direction of program control device, program loading/starting, program control design, etc., can solve the problems of increased space storage cost, low-efficiency backup, erasure, combined writing, etc., to achieve a small footprint , improve efficiency, high efficiency

Active Publication Date: 2020-10-13
C SKY MICROSYST CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Because the address of the data segment can only be determined when the program module is loaded and running, to realize the dynamic loading of the program module in the embedded system, in the prior art, when the program module is loaded and running, the relevant instructions of the code segment are usually assigned according to the address of the data segment Perform relocation modification. The relocation of code segment data access instructions by this dynamic loading mechanism related to data segment addresses will lead to modification of power-down storage, requiring inefficient backup, erase, and merge write operations; In addition, the relocation of the code segment data access instructions by the dynamic loading mechanism requires additional storage space to store the relocation information carried in the program module, which increases the storage cost of the loading space

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 method for dynamic loading of program modules
  • A method for dynamic loading of program modules
  • A method for dynamic loading of program modules

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is only some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0038] The invention provides a method for dynamically loading program modules, which is realized through the cooperation of a compiling system and a dynamic loader. figure 1 A schematic diagram of the overall structure of the program module dynamic loading solution provided by the present invention is shown. As shown in the figure, the prog...

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 provides a dynamic loading method of a program module. The method comprises the steps that 1, a compiling system is provided and is used for compiling a program source code into a program module which can be dynamically loaded, and the program module comprises a binary system code segment and a data segment; 2, a dynamic loader is provided, and comprises an installation module which is used for installing the program module into a memory space of the program module and a loading module which is used for loading the program module into a runtime data storage space in running; 3, the binary system code segment of the program module calculates a global variable address in the program source code through a sequence number mapping table of the program module in the runtime data storage space and a relational mapping table between a sequence number of the program module and a data segment base address; 4, a global variable corresponding to the global variable address is read and written and referenced. According to the dynamic loading method, the dynamic loading efficiency can be improved.

Description

technical field [0001] The invention relates to the technical field of computer software, in particular to a method for dynamically loading program modules. Background technique [0002] Dynamic loading technology enables large programs to call functions that are not part of their executable code, and updates are applied to individual modules without affecting other parts of the program, thereby saving disk and memory space required by the application. At present, the dynamic loading technology has a standardized method on the PC, such as the dynamic link library (DLL) file loading technology on the Windows platform, and the shared library (SO) file loading technology on the Linux platform. These dynamically loadable files can be identified, loaded, and executed by the dynamic loader running on the corresponding operating system. The dynamic loader allocates running memory for the program module by reading the description information in the program module, loads the program...

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/44521
Inventor 修志芳李春强尚云海童琪杰陈林飞
Owner C SKY MICROSYST CO LTD