首页 | 官方网站   微博 | 高级检索  
     

一种检测运行栈与静态数据区重叠的新方法
引用本文:谷晓铭,霍玮,桂剑,贾耀仓. 一种检测运行栈与静态数据区重叠的新方法[J]. 计算机工程与应用, 2006, 42(20): 86-88,112
作者姓名:谷晓铭  霍玮  桂剑  贾耀仓
作者单位:中国科学院计算技术研究所先进编译技术研究组,北京,100080;中国科学院研究生院,北京,100039;中国科学院计算技术研究所先进编译技术研究组,北京,100080
摘    要:嵌入式系统中由于内存限制,容易出现运行栈和数据区重叠的错误。已有的两种检测该错误的方法在准确性和易用性方面存在缺陷,不适用于基于软件模拟器的大规模回归测试。文章通过改变运行栈与静态数据区的布局,将运行栈与静态数据区重叠的错误转化为运行栈超越内存地址空间的错误。新方法大大简化了这种运行时错误的检测和调试。

关 键 词:嵌入式系统工具链  ELF文件格式  运行栈  静态数据区  链接器  软件模拟器
文章编号:1002-8331-(2006)20-0086-03
收稿时间:2005-10-01
修稿时间:2005-10-01

A New Approach to Detect the Overlap between Runtime Stack and Static Data Sections
Gu Xiaoming,Huo Wei,Gui Jian,Jia Yaocang. A New Approach to Detect the Overlap between Runtime Stack and Static Data Sections[J]. Computer Engineering and Applications, 2006, 42(20): 86-88,112
Authors:Gu Xiaoming  Huo Wei  Gui Jian  Jia Yaocang
Affiliation:1.Advanced Compilation Technology Group,Institute of Computing Technology, Chinese Academy of Sciences,Beijing 100080;2.Graduate School of the Chinese Academy of Sciences,Beijing 100039
Abstract: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.
Keywords:embedded system toolchain  ELF file format  nmtime stack  static data sections  linker  software simulator
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号