摘要
介绍了代码插装技术的应用背景比较了手工和自动两种代码插装方式重点分析和比较了代码自动插装在编译过程中各阶段实现的可行性和思路提出在编译预处理和编译阶段之间增加一个CPU无关的编译预处理文件且具有代码自动插装功能的语法词法分析阶段的一种最佳实现方案给出了一个简单原型的实现
This paper introduces the background of code instrumentation technology and gives a brief comparison between manual and automatic instrumentation at first. Then the paper puts the focus on the analysis and comparison of the feasibility and solution of implementing code instrumentation in different compiling phases. One CPU-independent syntax and lexical analysis phase with code instrumentation function based on the preprocessed file inserted between preprocessing and compiling phase is proposed and the implementation of one simple prototype is provided at last.
出处
《电子科技大学学报》
EI
CAS
CSCD
北大核心
2002年第1期62-66,共5页
Journal of University of Electronic Science and Technology of China
关键词
覆盖测试
代码插装
软件工程
软件测试
coverage test
code instrumentation
compile
lexical analysis
syntax analysis