Check patentability & draft patents in minutes with Patsnap Eureka AI!

A method for generating symbol tables and static data flow graphs during costream parsing

A syntax analysis and symbol table technology, applied in the field of computer compilation, can solve the problems of large differences in object-oriented programming languages ​​and the inability to meet reading and writing requirements, so as to simplify the way of writing nested data flow programs, improve user-friendliness, shorten The effect of code size

Active Publication Date: 2021-06-11
HUAZHONG UNIV OF SCI & TECH
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Because the general programming language, such as C, C++ and Java, etc., its symbol table only involves the storage of grammatical structure information such as variables, functions and classes. As a data flow programming language, COStream is quite different from object-oriented programming languages. New grammatical structures such as Stream, Composite, and Operator are introduced, and information such as variable values, data stream types, and Composite parameters need to be read and written frequently during the static data flow graph generation process, so it is necessary to design the storage of the COStream symbol table in combination with the above requirements information and storage structure, and because the scope of general programming languages ​​is only divided into global scope and block-level scope, the storage scope is stored in a tree structure, which cannot meet the requirements for reading identifiers in the inner Operator structure and outer Composite structure in COStream Write requirements, so it is necessary to reasonably divide the scope of COStream and design a suitable scope hierarchy

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 for generating symbol tables and static data flow graphs during costream parsing
  • A method for generating symbol tables and static data flow graphs during costream parsing
  • A method for generating symbol tables and static data flow graphs during costream parsing

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0060] In order to make the object, technical solution and advantages of the present invention more clear, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not constitute a conflict with each other.

[0061] The present invention designs scope hierarchical structure and symbol table aiming at the specific Stream, Operator and Composite grammatical structures in COStream, and the reading and writing requirements for information such as variable values, data stream types and Composite parameters in the static data flow diagram generation process store information.

[0062] COStream's Scope ...

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 generating a symbol table and a static data flow graph in the COStream syntax analysis process, belonging to the field of compilation. Aiming at the unique grammatical structure in COStream and the reading and writing requirements for variable values, data stream types and Composite parameters in the static data flow graph generation process, the present invention designs a hierarchical structure scope and three kinds of symbol tables to realize the scope fast storage and retrieval. On the basis of the symbol table, the simulation of the execution context is realized, and the parameter information passed by the Composite call is calculated during the compilation process; combined with the parameter information of the Composite call, the program execution path including the Composite call is determined, and the conditional statement and loop statement are realized. Constant propagation, dig out more constant information contained in the program; according to these constant information, realize the compilation of the program containing the calculation nodes controlled by variables; the realization of the nested data flow structure makes it possible to nest the use of Splitjoin when programming with COStream And the Pipeline programming structure improves the user-friendliness of COStream.

Description

technical field [0001] The invention belongs to the technical field of computer compilation, and more specifically relates to a method for generating a symbol table and a static data flow graph in the COStream syntax analysis process. Background technique [0002] COStream programming language is a high-performance stream programming language oriented to parallel architecture, which extends three main structures on the C++ grammar: Composite, Operator and Stream. Among them, Stream is used to describe data flow information; Operator represents a computing unit, which contains the computing process of data; Composite is the encapsulation of one or more Operators, and the multiplexing of computing nodes is realized by calling Composite. The user uses these three structures to describe the algorithm process, and the COStream compiler generates a static data flow graph through analysis, and sequentially performs workload estimation, task division, pipeline construction, and gene...

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/42G06F8/427G06F8/434G06F8/4441
Inventor 于俊清黄业兴李新星
Owner HUAZHONG UNIV OF SCI & TECH
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More