A method of dynamic loading of program modules

A program module and dynamic technology, applied in program control design, instrument, calculation, etc., can solve the problems of low-efficiency backup, erasure, merge write, increase the cost of space storage, etc., achieve small occupied space, reduce consumption, The effect of improving 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 of dynamic loading of program modules
  • A method of dynamic loading of program modules
  • A method of dynamic loading of program modules

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036] In order to make the purposes, 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 with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments It is only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0037] 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 sh...

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 data segment base address mapping table of the program module in the runtime data storage space; 4, a global variable corresponding to the global variable address is read and written and referenced. According to the dynamic loading method, the operation, namely back-up, erasure and merging writing, on the memory space in repositioning can be avoided, and the dynamic loading efficiency is 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): G06F8/61
CPCG06F8/61G06F9/44521
Inventor 修志芳李春强尚云海童琪杰陈林飞
Owner C SKY MICROSYST CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products