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

A method to reduce register overflow caused by fine-grained randomization security optimization

A register and randomization technology, which is applied in the direction of instruments, program code conversion, calculation, etc., can solve the problems of register overflow, high register pressure, and no consideration of register pressure, etc., and achieve the effect of reducing register overflow and improving the effect

Active Publication Date: 2022-01-04
广东中科实数科技有限公司
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The existing loop unrolling optimization does not take register pressure into account, but only estimates according to heuristic rules, because to a certain extent, it will lead to excessive register pressure and register overflow.

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
  • A method to reduce register overflow caused by fine-grained randomization security optimization
  • A method to reduce register overflow caused by fine-grained randomization security optimization
  • A method to reduce register overflow caused by fine-grained randomization security optimization

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0048]It should be noted that if there is a directional indication (such as up, down, left, right, front, back...) in the embodiment of the present invention, the directional indication is only used to explain the position in a certain posture (as shown in the accompanying drawing). If the specific posture changes, the directional indication will also change accordingly.

[0049] In addition, if there are descriptions involving "first", "second" and s...

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 reducing register overflow caused by fine-grained randomization safety optimization, and relates to the technical field of compiler cycle optimization. First, the variables in the registers in the cycle body are reclassified, including cycle invariants, cycle induction variables and cycle changes. After the classification, the variables in the registers in the loop body are identified; finally, according to the number of loop invariants, loop induction variables, and loop variations in the loop body registers after identification, the loop expansion factor is obtained. The present invention proposes register pressure sensitive The loop unrolling method can improve the loop optimization effect to a certain extent and reduce the occurrence of register overflow; in addition, for randomization optimization, hot code, generally the loop body is more sensitive to the performance load brought by randomization, thus improving loop unrolling Optimizations can also improve the performance of fine-grained randomization security optimizations.

Description

technical field [0001] The invention relates to the technical field of compiler cycle optimization, in particular to a method for reducing register overflow caused by fine-grained randomization security optimization. Background technique [0002] There are two types of registers in the compilation optimization process, one is the hard register, which is the limited storage space actually used for storage in the processor, and the other is the virtual register, which is a virtual register resource proposed by the compilation process, and the number is much larger than The actual number of registers. Register pressure refers to the number of hard registers required to store all active pseudo-register values ​​​​at a certain program point during compilation, and the register pressure of a basic block, loop or function refers to registers at all program points in the code block maximum pressure. Register overflow is a situation where excess memory access is caused by excessive...

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 Patents(China)
IPC IPC(8): G06F8/41
CPCG06F8/443G06F8/452
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