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

A Compiler Applied to High Speed ​​Digital IO Waveform Engine

A waveform engine and compiler technology, applied in the field of small compilers, can solve problems such as abnormal execution, high speed and space requirements, and confusion, so as to reduce hardware overhead and debugging time, accurately locate errors, and reduce The effect of space utilization

Active Publication Date: 2016-03-23
BEIJING AEROSPACE MEASUREMENT & CONTROL TECH
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] 1. In the process of executing these steps, structural variables such as stacks, linked lists, and binary trees will be generated. A large amount of memory space is required to store these variables. Most of these resources need to be pre-applied. Too long or too short code written by the user will cause space waste
[0006] 2. It is necessary to complete the program compilation through the upper computer before sending it to the lower computer for execution through the bus. This is because the above process has high requirements for speed and space, and the lower computer generally cannot provide enough resources required by the above steps to complete the compilation process.
[0007] 3. There are many links in the traditional compilation process, and they are executed sequentially. The input of the next step depends on the output of the previous step. If the result of the previous step does not conform to the rules defined by the grammar, the next step will not be executed normally. , at this time the environment will stop compiling and return an error
Such cumbersome operations are for the stability of the entire IDE environment, but for the user, it is equivalent to adding a lot of restrictions, and the user is unable to intervene after the error is reported in the later steps, and even confused

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 Compiler Applied to High Speed ​​Digital IO Waveform Engine
  • A Compiler Applied to High Speed ​​Digital IO Waveform Engine
  • A Compiler Applied to High Speed ​​Digital IO Waveform Engine

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] The present invention will be described in detail below with reference to the accompanying drawings and examples.

[0027] The present invention provides a small compiler for a high-speed digital IO waveform engine, which includes three modules, the first module, the second module and the third module perform the following steps 1, 2 and 3 respectively.

[0028] figure 1 It is a flowchart of the present invention.

[0029] Step 1. The first module identifies and classifies keywords and variables.

[0030] Such as figure 1 As shown, the user code enters the compiler as input data, and the compiler will precompile the code. This stage is mainly to check syntax errors, keyword recognition, simple storage, etc., to prepare for the subsequent process. If there is an error, it will The corresponding sixteen-digit error code is returned, and the corresponding error can be found by referring to the provided document. The specific implementation process is as follows:

[00...

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 small compiler applied to high-speed digital I / O wave engines. The processing of the compiler is divided into three steps, i.e. identification and classification of keywords and variables, syntax check and code optimization and generation of target codes. In the first step, the form of a linked list is adopted to record the appearing sequence of keywords and specific symbols, and the parameters of the keywords are recorded in an array; the array is converted into a linked list in the second step, so that space occupation can be reduced; and target codes are generated according to the pop of the linked list. The compiler can simplify the compiling process, the size of the compiler is reduced, and resources used in the compiling process can be flexibly applied, and cannot be wasted; moreover, because the compiler can be arranged in a lower computer, the compilation-downloading process of an upper computer is dispensed with, the overhead is reduced, and the debugging time is shortened.

Description

technical field [0001] The invention belongs to the field of software compilation algorithms, in particular to a small compiler applied to a high-speed digital IO waveform engine. Background technique [0002] In the traditional sense, instrument manufacturers provide users with control programs or drivers in units of functions and attributes. These functions and attributes are focused on realizing one or several specific functions, and users can only use the control methods provided by the manufacturer. Instead, the lower-level functions cannot be combined arbitrarily according to their own needs, which limits the user's usage methods and cannot meet the higher-level needs of users. For example, users need to use the original functions provided by the high-speed digital IO module to realize multiple waveforms with multiple markers, satisfy multiple trigger conditions at the same time, and realize N-level loop nesting and conditional branching, which is almost impossible to ...

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 BEIJING AEROSPACE MEASUREMENT & CONTROL TECH
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