摘要
通过在C语言编译器产生的汇编代码中增加"软中断"指令和模拟设置断点,回避了Windows调试API函数的局限,实现了图像处理软件中编译器的跟踪调试功能。通过追踪编译器生成的局部变量和全局变量内存分配表,实现了断点追踪过程中的数据实时查询功能;通过查找特定的函数头标志,实现了call stack功能。本文所述软件模拟实现了常用编译器调试功能中的基本功能。
Through adding a" soft interrupt'instruction in the asmbel code produced by the C compiler, and simulating the setting of break points to avoid the Windows' limitation of debugging the API function, we realize the dubugging and tracing function of the compiler in image processing software. Through tracing the local variables and global variables memory allocation table,we get the real-time inquiry function of data in tracing the break points. Through finding the specific function head,we realize the function of call stack. The software presented in the paper basically realizes the key technology of debugging in the compiler.
出处
《计算机工程与科学》
CSCD
北大核心
2009年第3期66-67,131,共3页
Computer Engineering & Science