DocumentCode
2235839
Title
Graph-Based Procedural Abstraction
Author
Dreweke, A. ; Wörlein, M. ; Fischer, I. ; Schell, D. ; Meinl, Th ; Philippsen, M.
Author_Institution
Dept. of Comput. Sci., Erlangen-Nuremberg Univ., Erlangen
fYear
2007
fDate
11-14 March 2007
Firstpage
259
Lastpage
270
Abstract
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
Keywords
embedded systems; graph theory; microcomputers; optimisation; optimising compilers; embedded micro computers; gSpan algorithm; graph-based procedural abstraction; mass-produced embedded systems; Cellular phones; Computer science; Cost function; Data mining; Embedded computing; Embedded system; Energy consumption; Flow graphs; Mass production; Microcomputers;
fLanguage
English
Publisher
ieee
Conference_Titel
Code Generation and Optimization, 2007. CGO '07. International Symposium on
Conference_Location
San Jose, CA
Print_ISBN
0-7695-2764-7
Type
conf
DOI
10.1109/CGO.2007.14
Filename
4145120
Link To Document