Branch path jumping method and device, storage medium and electronic device

A branch path and jump technology, applied in the field of communication, can solve problems such as low branch jump efficiency, and achieve the effect of improving branch jump efficiency

Active Publication Date: 2021-06-04
ZHEJIANG DAHUA TECH CO LTD
View PDF13 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide a branch path jump method, device, storage medium, and electronic device to at least solve the problem of low branch jump efficiency in the related art

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
  • Branch path jumping method and device, storage medium and electronic device
  • Branch path jumping method and device, storage medium and electronic device
  • Branch path jumping method and device, storage medium and electronic device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] Embodiments of the present invention will be described in detail below with reference to the drawings and in combination with the embodiments.

[0020] It should be noted that the terms "first" and "second" in the description and claims of the present invention and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence.

[0021] In related technologies, the schematic diagram of branch jump can be found in the attached figure 1 ,Such as figure 1 As shown, before executing the specific branch A or branch B, there will be a branch judgment step. From the perspective of the CPU, when executing the specific branch A or branch B, there must be a branch judgment process. For the flow chart of branch judgment, please refer to the attached figure 2 ,Such as figure 2 As shown, the branch judgment process includes:

[0022] Step S1, load instructions from memory (unavoidable);

[0023] Step S2, loadin...

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 branch path skipping method and device, a storage medium and an electronic device. The method comprises the steps: acquiring a branch skipping code, wherein the branch skipping code is used for indicating at least two branch paths; determining an assembly code corresponding to the branch jump code, and embedding the branch jump code in the assembly code to obtain a target code, wherein the assembly code is used for achieving jump between the branch paths; under the condition that it is determined that a target branch path included in at least two branch paths needs to be jumped to, generating a target jump instruction used for indicating to jump to the target branch path; replacing a jump instruction included in the target code with a target jump instruction, and jumping to the target branch path based on the target jump instruction. According to the invention, the problem of low branch jump efficiency in the prior art is solved, and the branch jump efficiency is improved.

Description

technical field [0001] Embodiments of the present invention relate to the communication field, and in particular, relate to a branch path jumping method, device, storage medium, and electronic device. Background technique [0002] In related technologies, CPU (Central Processing Unit) often has a long pipeline (an instruction execution mechanism inside a CPU, and there is a certain relationship between the various stages of the pipeline. The collapse of the upper pipeline will lead to the reconstruction of the lower pipeline), making it Achieving instruction parallelism in a small area improves the instruction throughput of the CPU, and the longer the pipeline, the faster the average speed of completing an instruction. On the other hand, there are often conditional branches in the program, which have two follow-up paths: do not take the jump (execute subsequent instructions sequentially) or take the jump (jump to other instruction addresses); It is determined by passing 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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/38
CPCG06F9/3804G06F9/30058G06F8/443
Inventor 裘杲远
Owner ZHEJIANG DAHUA 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