Analysing memory resource bounds for low-level programs
Analysing memory resource bounds for low-level programs
复制标题
DOI:
10.1145/1375634.1375656
复制
发表时间:
2008-06
期刊:
影响因子:
--
通讯作者:
W. Chin;Huu Hai Nguyen;C. Popeea;S. Qin
中科院分区:
文献类型:
--
作者:
W. Chin;Huu Hai Nguyen;C. Popeea;S. Qin
Embedded systems are becoming more widely used but these systems are often resource constrained. Programming models for these systems should take into formal consideration resources such as stack and heap. In this paper, we show how memory resource bounds can be inferred for assembly-level programs. Our inference process captures the memory needs of each method in terms of the symbolic values of its parameters. For better precision, we infer path-sensitive information through a novel guarded expression format. Our current proposal relies on a Presburger solver to capture memory requirements symbolically, and to perform fixpoint analysis for loops and recursion. Apart from safety in memory adequacy, our proposal can provide estimate on memory costs for embedded devices and improve performance via fewer runtime checks against memory bound.