This paper explores into incremental compilation techniques based on TTCN-3, and elaborates the design and implementation of incremental compiler combining with TTCN-3 characteristic.In this paper, through the analysis and comparision of current incremental compilation techniques a compilation technique tightly coupling with TTCN-3 characteristics is proposed based on the intensive study of implemented compiler of our laboratory. While introducing the design and implementation of incremental compiler in details, this paper makes a general discussion on incremental compilation techniques firstly; then, on the basis of detailed analysis and study and combing with TTCN-3 characteristics, elaborates on the structures of intermediate files and cross reference table, incremental static semantic check, symbol table extension and improved code generation mechanism; at last, the gross structure of incremental compiler and memory management scheme using in implementation are given.For the problems of close coupling and high redundancy in code generation of the intrinsic compilers, this paper makes a significant optimization on the code generation mechanism of intrinsic compilers, and conducts redesigns and re-implementation according to the current software engineering thinking of structuring and modularization, which has detailed introduction in this paper.This paper has realized the prototype of incremental compiler based on the implemented TTCN-3 compiler of our laboratory. |