Optimization method and device for contour technology compilation

An optimization method and technology, applied in the network field, can solve problems such as low execution efficiency, and achieve the effect of improving execution efficiency and solving low execution efficiency.

Active Publication Date: 2017-11-24
HUAWEI TECH CO LTD +1
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide an optimization method and device for contour technology compilation to overcome the problem of low execution efficiency in contour technology compilation in the prior 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
  • Optimization method and device for contour technology compilation
  • Optimization method and device for contour technology compilation
  • Optimization method and device for contour technology compilation

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. 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.

[0039] image 3 The flow chart of Embodiment 1 of the optimization method compiled for the contour technology of the present invention, Figure 4 is a schematic diagram of the control flow graph in Embodiment 1, Figure 5 for right Figure 4 The schematic diagram of the control flow graph after dividing the area, Figure 6 for right Figure 5...

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

Embodiments of the present invention provide a method and an apparatus for optimizing compilation in a profiling technology. The method for optimizing compilation in a profiling technology of the present invention comprises: obtaining at least two regions by dividing a software control flow diagram, and replacing an instrumentation function comprised in software corresponding to each region with a count operation; and executing the software corresponding to each region on a main thread, when execution of the software corresponding to one region is ended, starting at least one microthread to execute an operation other than the count operation of the instrumentation function comprised in the software corresponding to the region, so as to record information during execution of the software corresponding to the region; where the microthread and a main thread for executing software corresponding to a next region are executed in parallel. The embodiments of the present invention improve execution efficiency during compilation in a profiling technology, thereby solving a problem of low execution efficiency in the prior art.

Description

technical field [0001] Embodiments of the present invention relate to network technology, and in particular to an optimization method and device for contour technology compilation. Background technique [0002] The general practice of modern optimizing compilers is to use profiling technology, which is an important method for collecting program runtime information, including edge profiling, stride profiling, value Contour technology (value profiling) and other forms, among which edge profiling is the most widely used. [0003] The existing Edge Profiling method is to insert instrumentation functions that can calculate the number of executions of each edge on the control flow graph generated at compile time, but the number is the least; the executable file generated in this way will call the instrumentation several times at runtime Function to collect the runtime information of the program and save it in the form of a file. figure 1 It is a schematic diagram of dividing bas...

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): 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