Method and apparatus for positioning target file

A target file and relocation technology, applied in the direction of program control design, instrument, electrical digital data processing, etc., can solve the problems of target file loading failure, reduce the memory utilization rate of the target device, and cannot effectively use resources, etc., to achieve reduction The complexity of implementation and maintenance, the effect of improving memory utilization

Inactive Publication Date: 2006-10-04
HUAWEI TECH CO LTD
View PDF0 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0018] 1. Each target device must be equipped with a maintenance host, which maintains a record of all positioning-related information of the target device offline, and the maintenance cost is relatively high
And once the offline record is inconsistent with the target device, it will cause serious consequences
For example, suppose a maintenance client is used to maintain two target devices, one of which has loaded a target file A on device P, and nothing has been loaded on the other device Q, and now it is necessary to load target file B to P, but an error The location record of device Q is used indiscriminately. Since there is no information about the target file A on Q, B may overwrite A directly, causing the system to crash.
To avoid this situation, complex verification is required, and the cost is high;
[0019] 2. The target device must reserve a location in the memory for the target file, so as to ensure that the offline positioning of the target file must be successful, which greatly reduces the memory utilization of the target device
For example, if the offline positioning device assigns the target file to the location A1, but this location is already occupied by a program during operation, the loading of the target file will fail;
[0020] 3. This method is complicated to implement and cannot effectively use existing resources. There is no ready-made general tool to complete this offline relocation of target files. The entire offline relocation process can only be completed by the designer's code

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 and apparatus for positioning target file
  • Method and apparatus for positioning target file
  • Method and apparatus for positioning target file

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048] The present invention provides a method and device for locating a target file. The core of the present invention is: before loading a target file to a specific target device, first partially pre-locate the target file, that is, only the absolute The address is relocated, and the positioning of the relative address in the target file is delayed until the target file is loaded on the target device.

[0049] The structural diagram of the device of the present invention is as image 3 shown, including:

[0050]Private memory: Used to create symbol information records including address information for all variables and functions of the target device.

[0051] The dedicated memory in the device of the present invention is implemented in an off-line manner outside the target device.

[0052] Pre-release processor: used to read the symbol information record of the target device in the special memory, and relocate the absolute address in the target file according to the symbol...

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 provided locating method for target file comprises: before loading, relocating the absolute address of target file; after loading, relocating its relative address, and completing the whole process. Wherein, the related devices comprise: a specific memory, a distribution pre-processor, and a relocating module for target file. This invention can improve memory utilance greatly, and reduces complexity for relocation and maintenance.

Description

technical field [0001] The invention relates to the field of computer applications, in particular to a method and device for locating target files. Background technique [0002] Embedded system is a special-purpose computer system based on computer technology, application-centric, and software and hardware can be tailored. When embedded devices or other devices implement functions such as dynamic modules or online patches, it is usually necessary to dynamically load a program module onto the target device, which involves the problem of dynamically relocating the target file. [0003] In the computer system, the target file refers to the binary expression of the program module. Before the target file forms an executable program together with other modules of the application, its position in the memory is not fixed, and the addresses contained in it are all floating. address. The floating addresses in the object file include relative addresses and absolute addresses. The ab...

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/45
Inventor 李国柱
Owner HUAWEI TECH 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