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

Loop instruction processing method and device, equipment and storage medium

A technology of cyclic instructions and processing methods, which is applied in the field of voice technology and chips, and can solve problems such as inaccurate predictions

Active Publication Date: 2020-11-27
BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF8 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, in the above-mentioned process of calculating the number of cycles and judging the end of the cycle, the number of cycles and the end of the cycle are predicted according to the state of the program, so there will be a problem of inaccurate prediction

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
  • Loop instruction processing method and device, equipment and storage medium
  • Loop instruction processing method and device, equipment and storage medium
  • Loop instruction processing method and device, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0082] In an alternative embodiment, such as Figure 6 As shown, the storage address corresponding to each first loop instruction is stored in the end address register in order of instruction fetching. In this way, after all the computer instructions are acquired and detected, the storage address of the last first loop instruction recorded in the end address register is the end address.

[0083] In another alternative embodiment, such as Figure 7 As shown, each time the first loop instruction is detected, the storage address of the currently detected first loop instruction is used to overwrite the previously recorded storage address. It can be seen that an end address is always stored in the end address register, so The storage space of the end address register can be saved, and the search time can be shortened and the search efficiency can be improved in the process of searching for the end address later.

[0084] In an optional implementation manner, detecting whether the...

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 loop instruction processing method, device and equipment and a storage medium, and relates to the field of voice and chips. According to the specific implementation scheme, acomputer program is obtained, the computer program comprises a first loop body, the first loop body is generated according to a second loop body in to-be-compiled software codes, the first loop bodycomprises a plurality of first loop instructions, and the first loop instructions can be recognized by a hardware structure of computer equipment; under the condition that the first loop body is detected, loop parameters of the first loop body are determined according to the multiple first loop instructions; a plurality of first loop instructions are obtained according to the loop parameters of the first loop body; and the plurality of first loop instructions are executed. According to the embodiment of the invention, the first loop body is generated according to the second loop body in the to-be-compiled software code, and the first loop instruction included in the first loop body can be identified by the hardware structure of the computer equipment, so that the hardware structure can directly and accurately determine the loop parameter according to the first loop instruction.

Description

technical field [0001] The embodiments of the present application relate to voice technology and chip technology in computer technology, and in particular to a processing method, device, device and storage medium for loop instructions. Background technique [0002] In a computer, loop statements written in a high-level language are often used. For example, in a voice signal processing scene, it is often necessary to perform digital signal processing on an array of voice data, so a for loop (fori=0; i<N; i++) statements and for loop statements are usually compiled into several addition instructions and conditional branch jump instructions after being compiled by a compiler. In the specific implementation process, it is judged whether the number of loops is 0. If it is not 0, it is necessary to use the conditional branch jump instruction to return and continue to execute the addition instruction, so as to achieve the effect of the loop. [0003] At present, in the above-me...

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): G06F9/30
CPCG06F9/30065G06F9/30098G06F9/325G06F9/381G06F9/355G06F9/3851G06F9/3012G06F8/41G06F9/30101G06F9/30152G06F9/30189
Inventor 闻军会田超
Owner BEIJING BAIDU NETCOM SCI & TECH 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