신뢰성 있는 컴파일러 개발을 위한 심벌 테이블로부터 선언문의 복원 시스템 개발

이양선 · 산업기술연구소 논문집 · 2008

We have developed an ANSI C compiler based on the virtual machine code. This ANSI C compiler collects the attributes on the identifiers that are recognized after analyzing the abstract syntax tree generated by lexical and syntactical analyses. At the stage of semantic analysis, the feasibility of the collected information is examined. At the stage of code generation, on the contrary, a proper code is generated using symbol table information. This paper presents the declaration part reconstruction system that restores into C program with the information in a symbol table in order to investigate if the symbol table information on the identifiers is correct or not. Due to the implementation of this technique, whether all attributes necessary for the symbol table are stored or not can be checked during compiling. Further, because debug informations is also outputted, the adjustment of the ANSI C compiler has become more convenient. And this work also can be applied to develop a C++ compiler and a Java compiler.

Cited by 0 works.

Authors