Method for generating symbol table and static data flow graph in COStream grammatical analysis process

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, inability to meet the needs of reading and writing, etc., to achieve the effect of expanding application scenarios

Active Publication Date: 2020-11-17
HUAZHONG UNIV OF SCI & TECH
View PDF2 Cites 2 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
  • Method for generating symbol table and static data flow graph in COStream grammatical analysis process
  • Method for generating symbol table and static data flow graph in COStream grammatical analysis process
  • Method for generating symbol table and static data flow graph in COStream grammatical analysis process

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0060] In order to make the object, technical solution and advantages of the present invention clearer, 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 Hie...

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 a COStream grammatical analysis process, and belongs to the field of compiling. For a special grammar structure in COStream and reading and writing requirements on variable values, data flow types and Composite parameters in a static data flow diagram generation process, a hierarchical structure action domain and three symbol tables are designed, so that quick storage and reading of the action domain are realized. On the basis of the symbol table, simulation of an execution context is achieved, and parameter information transferred by Composite calling is calculated in the compiling process; in combination with the parameter information called by the Composite, a program execution path containingthe Composite call is determined, constant transmission of the conditional statements and the loop statements is achieved, and more constant information contained in a program is mined. According tothe constant information, the program containing a variable control computing node is compiled. By implementation of the nested data stream structure, when a COStream is used for programming, Spitjoinand Pipeline programming structures can be used in a nested manner, so that the user friendliness of the COStream is improved.

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 Applications(China)
IPC IPC(8): G06F8/41
CPCG06F8/42G06F8/427G06F8/434G06F8/4441
Inventor 于俊清黄业兴李新星
Owner HUAZHONG UNIV OF SCI & TECH
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