Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for realizing dynamic loading of program and method and equipment for generating mapping file

A technology of dynamically loading and image files, applied in the computer field, can solve problems such as loading failure and abnormal program execution, and achieve the effect of convenient testing

Active Publication Date: 2010-03-03
YULONG COMPUTER TELECOMM SCI (SHENZHEN) CO LTD
View PDF0 Cites 25 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present invention is to provide a method for implementing dynamic loading of programs in an embedded system, a method for generating an image file based on an embedded system, and an embedded device that supports global / static variables and solves problems when loading involves When the global / static variables used in the image file are executed abnormally, the program will fail to load.

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
  • Method for realizing dynamic loading of program and method and equipment for generating mapping file
  • Method for realizing dynamic loading of program and method and equipment for generating mapping file
  • Method for realizing dynamic loading of program and method and equipment for generating mapping file

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] The embodiment of the present invention provides a method for implementing dynamic loading of programs in an embedded system, a method for generating an image file based on an embedded system, and an embedded device that supports global / static variables and solves problems when loading involves When the global / static variables used in the image file are executed abnormally, the program will fail to load.

[0023] Preferred embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.

[0024] see figure 1 , figure 1 A flow chart of a method for implementing program dynamic loading in an embedded system according to an embodiment of the present invention is shown, including the following steps:

[0025] Step S101: allocate memory for the image file loaded based on the embedded system;

[0026] Specifically, the image file is provided with an entry function specifying the entry address of the image file when it is...

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 method for realizing dynamic loading of a program in an embedded system. The method comprises the following steps: distributing an internal memory to a mapping file which isloaded based on an embedded system; reading the content of the mapping file into the distributed internal memory; after finishing reading in the content of the mapping file, executing an instruction code of the mapping file; and carrying out the remapping of a global / static variable in the mapping file according to an entry address appointed by an entry function so as to finish the dynamic loadingof the program. Correspondingly, the invention also discloses a method for generating the mapping file based on the embedded system and embedded equipment. By implementing the embodiment of the invention, the global / static variable in the mapping file is remapped so as to realize that the dynamic loading of the mapping file supports the global / static variable, solve the problem that execute exception can occur and cause failed loading when the global / static variable used by the mapping file is loaded and be more convenient for testing the generated mapping file.

Description

technical field [0001] The invention relates to the computer field, in particular to a method for realizing program dynamic loading in an embedded system, a method for generating an image file based on the embedded system and an embedded device. Background technique [0002] In the integrated development environment of ARM (Advanced RISC Machines, a general name for a class of microprocessors), the read-only code segment and constants of a program are called RO (ReadOnly) segments; readable and writable global variables and static variables are called RO (ReadOnly) segments. Called the RW (ReadWrite) segment; the variable to be initialized to zero in the RW segment is called the ZI (ZeroInit) segment. For embedded systems, the program image is stored in some non-volatile devices such as Flash memory, and at runtime, the RW segment in the program must be reloaded to a readable and writable memory card, such as RAM (Random Access Memory, random access memory), or in system fi...

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/445G06F17/30
Inventor 燕青洲
Owner YULONG COMPUTER TELECOMM SCI (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products