Method and system for compiling and executing TTCN-3 language

A TTCN-3, compilation and execution technology, which is applied in the field of compilation and execution of high-level languages, can solve problems such as the influence of interpretation and execution method execution efficiency, unfavorable debugger implementation, and low performance of compilation and generation of translation and execution methods, so as to facilitate debugging and improve efficiency , the effect of high execution efficiency

Inactive Publication Date: 2009-04-15
UNIV OF SCI & TECH OF CHINA
View PDF0 Cites 29 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Benefits of technology

This technology allows for efficient compile-and-execute (C)TNC-3 languages with improved performance compared to existing methods like C/HDL or LISA. During this debug phase, interpretive code may also execute on behalf of these tools during test runs. By performing both types of operations simultaneously, it improves overall efficiency while minimizing resources needed.

Problems solved by technology

This patented technical problem addressed by this patents relates to improving compile/generation speed for certain types of tests (TTC) while also ensuring their accuracy when executed correctly during debugging sessions.

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 and system for compiling and executing TTCN-3 language

Examples

Experimental program
Comparison scheme
Effect test

specific Embodiment

[0037] Such as figure 1 As shown, in the same compiler front end, the interpretation-based and translation-based executors are respectively constructed. Each module in the present invention is described in detail below:

[0038] translater:

[0039] A compiler for TTCN-3 language is established through common lexical analysis and syntax analysis automatic generation tools, such as ANTLR. The TTCN-3 language supports forward references and supports importing definitions from other modules. These two regulations cause the compiler to encounter unknown definition bodies during the scanning process (definition bodies appear after the scan point or other modules), In order to continue the analysis process, for this case, it must be assumed that the reference of the unknown definition body is semantically correct, and at the same time generate a reference body object, record the name, type, module and other information of the unknown definition body, and Add the reference body ob...

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 compile and go method and a system for TTCN-3 script. First, a compiler carries out lexical and grammatical analysis as well as static semantic check on an input TTCN-3 script file, so as to obtain a memory object for saving script information; then two different execution modes are provided: translation execution and interpretive execution, wherein, under the mode of translation execution, a syntax tree offered by the compiler is used for translating the file of TTCN-3 format into C++ intermediate language, is then compiled into an executable file by means of the compiler of intermediate language, finally the executable file operates on an operation system; under the mode of interpretative execution, execution semantics is accomplished directly on the syntax tree. By this means, the generation speed of script and the debugging efficiency of the script can be improved within the debugging period of TTCN-3 script; in testing and implementation stages, the compilation generation time of the TTCN-3 script is avoided, and the execution performance of TTCN-3 and the testing efficiency are improved.

Description

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

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
Owner UNIV OF SCI & TECH OF CHINA
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