International Symposium on Code Generation and Optimization (CGO'07) Graph-Based Procedural Abstraction San Jose, California March 11-March 14 ISBN: 0-7695-2764-7
DOI Bookmark: http://doi.ieeecomputersociety.org/10.1109/CGO.2007.14
Procedural abstraction (PA) extracts duplicate code segments into a newly created method and hence reduces code size. For embedded micro computers the amount of memory is still limited so code reduction is an important issue. This paper presents a novel approach to PA, that is especially targeted towards embedded systems. Earlier approaches of PA are blind with respect to code reordering, i.e., two code segments with the same semantic effect but with different instruction orders were not detected as candidates for PA. Instead of instruction sequences, in our approach the data flow graphs of basic blocks are considered. Compared to known PA techniques more than twice the number of instructions can be saved on a set of binaries, by detecting frequently appearing graph fragments with a graph mining tool based on the well known gSpan algorithm. The detection and extraction of graph fragments is not as straight forward as extracting sequential code fragments. NP-complete graph operations and special rules to decide which parts can be abstracted are needed. However, this effort pays off as smaller sizes significantly reduce costs on mass-produced embedded systems.
Citation:
A. Dreweke, M. Worlein, I. Fischer, D. Schell, Th. Meinl, M. Philippsen, "Graph-Based Procedural Abstraction," cgo, pp.259-270, International Symposium on Code Generation and Optimization (CGO'07), 2007 Usage of this product signifies your acceptance of the Terms of Use. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||