作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2007, Vol. 33 ›› Issue (07): 87-88. doi: 10.3969/j.issn.1000-3428.2007.07.031

• 软件技术与数据库 • 上一篇    下一篇

汇编程序覆盖测试中虚拟插桩的实现

王学东,汪文勇   

  1. (电子科技大学计算机科学与工程学院,成都 610054)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2007-04-05 发布日期:2007-04-05

Implementation of Virtual Instrumentation
in Coverage Test of Assembly Code

WANG Xuedong, WANG Wenyong   

  1. (School of Computer Science & Engineering, University of Electronic Science and Technology of China, Chengdu 610054)
  • Received:1900-01-01 Revised:1900-01-01 Online:2007-04-05 Published:2007-04-05

摘要: 在对汇编语言源程序的测试工作中,由于其非结构化的设计思想以及众多的跳转指令,使得插桩非常困难。该文在汇编嵌入式软件程序流程图自动生成的研究基础上,提出了以PC值为基准条件的断点设置、检测机制以及虚拟插桩机制。并结合特定的测试用例在仿真测试平台上得以实现,最后通过实验检验了其正确性。

关键词: 汇编程序, Lex, Yacc, 虚拟插桩, 语句覆盖, 分支覆盖

Abstract: It is very difficult to make implementation in the assembly code because of its none structural design idea. Based on the research of embedded assembly program flow chart automatic building, the breakpoint setting and checking mechanism, virtual instrumentation mechanism based on the PC values are proposed. The mechanisms are realized and verified in the emulation testing platform with special test case.

Key words: Assembly program, Lex, Yacc, Virtual instrumentation, Statement coverage, Branch coverage