Compiling optimization method and system oriented to customized rule file

An optimization method and a self-defined technology, applied in code compilation, memory system, software engineering design, etc., can solve problems such as fixed code generation rules, and achieve the effect of improving compilation efficiency and scalability

Active Publication Date: 2017-10-24
INST OF INFORMATION ENG CHINESE ACAD OF SCI
View PDF3 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of the above problems, the present invention proposes a compiling optimization method and system for custom rule files, which solves the problem that the code generation rules are relatively fixed, satisfies the user's needs for flexible configuration of the code generation rules, and is easy to accept when using The method reduces the difficulty of learning and makes the compilation process more general

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
  • Compiling optimization method and system oriented to customized rule file
  • Compiling optimization method and system oriented to customized rule file

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] Such as figure 1 Shown, the step of the inventive method comprises:

[0039] (1) Custom combination rule module, output corresponding lexical, grammar and semantics and other related configuration files and rule description documents according to the combination fields input by the user, target code format and other information (for users to write rules according to the combination fields defined by themselves ), which must contain the rule ID, input and output options.

[0040](1.1) The user must fill in the three fields of rule identification, input and output, and define the name, value, and value type of the field. For example, the rule identification can be written as the keyword "head", and its value will be a string type , can be written as "[TEST_MODE1]", "[TEST_MODE2]" and other specific forms. It is worth noting that the custom combination rule module supports regular expressions, that is, when filled in as regular expressions, for the rule identifier The ke...

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 compiling optimization method and system oriented to a customized rule file. All combined fields are uniformly put in a grammar to be processed, a text file is used for storing the result value of the field, so that type judgment only needs to be carried out during compiling, and different requirements are realized for different types. On one hand, physical memory is saved, and on the other hand, a code does not need to be revised. After a corresponding grammar frame is built, user input can be revised to control a compiling process, and the expandability of the system is greatly improved. Since an extensible grammar is used, the rule can be flexibly formed, and requirements that a code generation rule is flexibly configured can be solved. Meanwhile, due to the flexibility and the customized universality of the grammar structure, partial preprocessing optimization is carried out on an aspect of text, and compiling efficiency can be greatly improved.

Description

technical field [0001] The invention relates to the technical field of computer data processing and compilation optimization, in particular to a compilation optimization method and system for self-defined rule files. Background technique [0002] In many business application systems, the knowledge and experience of experts in a certain field are contained inside, forming part of the system's functions or processing logic, or some functions of the system depend on user configuration, and often adopt a modular configuration method. The custom rule description language generates rule files, and the rule files are compiled and optimized to generate target codes. After the rules are delivered to the system, the system loads the target codes to complete system configuration. [0003] Traditional compilation optimization methods only optimize when generating target code. At the same time, traditional code generation tools, such as MFC, can only generate code according to the built-...

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): G06F9/45
CPCG06F8/41G06F8/443G06F8/447
Inventor 庹宇鹏张永铮葛瑞海
Owner INST OF INFORMATION ENG CHINESE ACAD OF SCI
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