摘要
处理器在实际工作中会面对大量异步中断,而编译系统生成的代码可能由于多种原因导致处理器在中断干扰下不能正确运行。本文根据中断嵌套的递归特性提出一种基于寄存器采样与比较的编译系统测试方法,着重考察代码在异步中断干扰下运行的正确性。该方法同时可用于错误诊断,能够高效实现错误定位。实际应用证明该方法能够有效揭示并定位编译系统存在的错误,是对已有编译系统测试方法的一个补充。
Processor must react to interrupts from the outside world,but code generated by a compiling system may cause the system to not run correctly in such environment.According to the recursive nature of interrupt nesting,this paper proposes a testing method based on registers sampling and make a discussion on how to improve the efficiency of bug finding.The method is a supplement to normal testing methods and practical application demonstrated its efficiency.
出处
《微计算机信息》
2011年第5期182-184,共3页
Control & Automation
关键词
编译器
软件测试
中断
Compiler
Software Testing
Interrupt