DocumentCode
1976870
Title
Testing versus Static Analysis of Maximum Stack Size
Author
Eslamimehr, Mahdi ; Palsberg, Jens
Author_Institution
Univ. of California, Los Angeles, Los Angeles, CA, USA
fYear
2013
fDate
22-26 July 2013
Firstpage
619
Lastpage
626
Abstract
For event-driven software on resource-constrained devices, estimates of the maximum stack size can be of paramount importance. For example, a poor estimate led to software failure and closure of a German railway station in 1995. Static analysis may produce a safe estimate but how good is it? In this paper we use testing to evaluate the state-of-the-art static analysis of maximum stack size for event-driven assembly code. First we note that the state-of-the-art testing approach achieves a maximum stack size that is only 67 percent of that achieved by static analysis. Then we present better testing approaches and use them to demonstrate that the static analysis is near optimal for our benchmarks. Our first testing approach achieves a maximum stack size that on average is within 99 percent of that achieved by static analysis, while our second approach achieves 94 percent and is two orders of magnitude faster. Our results show that the state-of-the-art static analysis produces excellent estimates of maximum stack size.
Keywords
program diagnostics; program testing; event-driven assembly code; event-driven software; maximum stack size; resource-constrained devices; software failure; static analysis; testing approach; Assembly; Benchmark testing; Concrete; Engines; Hardware; Software; Testing; maximum stack size; static analysis;
fLanguage
English
Publisher
ieee
Conference_Titel
Computer Software and Applications Conference (COMPSAC), 2013 IEEE 37th Annual
Conference_Location
Kyoto
Type
conf
DOI
10.1109/COMPSAC.2013.100
Filename
6649890
Link To Document