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

Jump table lookup method and device, electronic equipment and storage medium

A jump table and jump instruction technology, applied in the field of electronics, can solve problems such as difficulty in finding and determining the jump table

Pending Publication Date: 2022-05-27
龙芯中科(成都)技术有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of the above problems, an embodiment of the present invention is proposed to provide a jump table lookup method that overcomes the above problems or at least partially solves the above problems, so as to solve the difficult problem of finding and determining the jump table from the target file

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
  • Jump table lookup method and device, electronic equipment and storage medium
  • Jump table lookup method and device, electronic equipment and storage medium
  • Jump table lookup method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0056] In order to facilitate understanding of the present invention, the technical background of the present invention is briefly introduced first.

[0057] In the process of program development, first use a high-level programming language to develop the source file of the program, then through compilation and assembly, the source file is converted into a relocatable object file, and finally the relocatable object file can be converted by linking Combined with some necessary system files, an executable object file is created, and the executable object file can be loaded and executed by a central controller (Central Processing Unit, CPU). The jump table search method provided in this embodiment operates on a relocatable object file, which is convenient for simplifying the description. The object files appearing in other positions in this embodiment all refer to the relocatable object files obtained through compilation.

[0058] In one embodiment, the relocatable object file 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 embodiment of the invention provides a jump table searching method and device, electronic equipment and a storage medium, and relates to the technical field of electronics. The method comprises the steps of determining functions included in a target file, recognizing instructions in the functions according to an execution sequence of the instructions, recording a recognition sequence, searching and determining a target instruction corresponding to a register read by the dynamic jump instruction according to a reverse sequence of the recognition sequence when the dynamic jump instruction is recognized, and executing the dynamic jump instruction according to the target instruction. And obtaining relocation information of the target instruction and relocation information of other instructions from the target file, and determining a storage area of the jump table based on the relocation information of the target instruction and the relocation information of other instructions. When the jump table is searched, the target instruction is determined by combining the register used by the dynamic jump instruction and the execution sequence of the instruction, and the position of the jump table in the target file is determined according to the relocation information of the target instruction, so that the storage area of the jump table of the dynamic jump instruction in the target file can be rapidly determined.

Description

technical field [0001] The present invention relates to the field of electronic technology, and in particular, to a jump table search method, device, electronic device and storage medium. Background technique [0002] In the process of program development, after the source file of the program is developed using a high-level programming language, the source file needs to be converted into a relocatable object file by compiling and assembling operations. The object file includes the program's machine code and Data required for program execution. A program usually includes multiple functions. When the function includes a dynamic jump instruction, the object file will include the jump table of the dynamic jump instruction, and the jump table includes the jump address required by the dynamic jump instruction to jump. . [0003] Usually, after the relocatable object file is obtained, it is necessary to debug the relocatable object file. At this time, it is necessary to find the ...

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
IPC IPC(8): G06F8/74
CPCG06F8/74
Inventor 何金阳杨铁柱李雪峰
Owner 龙芯中科(成都)技术有限公司
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