摘要
嵌入式系统中由于内存限制,容易出现运行栈和数据区重叠的错误。已有的两种检测该错误的方法在准确性和易用性方面存在缺陷,不适用于基于软件模拟器的大规模回归测试。文章通过改变运行栈与静态数据区的布局,将运行栈与静态数据区重叠的错误转化为运行栈超越内存地址空间的错误。新方法大大简化了这种运行时错误的检测和调试。
Embedded systems have limited memory and the stack and static data sections may overlap at runtime.The two known approaches to detect the problem are deficient in accuracy and usability and not suitable for large regression testing based on software simulator.This paper proposes a new method to transforms the error that runtime stack overlaps with the static data sections to the one that runtime stack exceeds the memory space by modifying the layout of runtime stack and static data sections.This new method can simplify the detection and debugging of the runtime error significantly.
出处
《计算机工程与应用》
CSCD
北大核心
2006年第20期86-88,112,共4页
Computer Engineering and Applications