代码自动插装技术的研究与实现

The Research & Implementation of Code Automatic Instrumentation Technology

  • 摘要: 介绍了代码插装技术的应用背景,比较了手工和自动两种代码插装方式,重点分析和比较了代码自动插装在编译过程中各阶段实现的可行性和思路,提出在编译预处理和编译阶段之间增加一个CPU无关的编译预处理文件,且具有代码自动插装功能的语法词法分析阶段的一种最佳实现方案,给出了一个简单原型的实现。

     

    Abstract: 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.

     

/

返回文章
返回