Title :
Live Range Splitting at Recursive Function Calls
Author :
Schaeckeler, Stefan ; Shang, Weijia
Author_Institution :
Santa Clara Univ., Santa Clara
Abstract :
For memory constrained environments like embedded systems, optimization for program size is often as important, if not more important, as optimization for execution speed. Commonly, compilers try to reduce the code segment size and neglect the stack segment, although the stack can significantly grow during the execution of recursive functions as a separate activation record is required for each recursive call. An activation record holds administrative data like the return address and the frame pointer but also the function´s parameter list and local variables. If a formal parameter or local variable is dead at all recursive calls, then it can be declared globally so that only one instance exists independent of the call depth. This allowed us to optimize the stack size in 70% of our benchmarks. Often, live ranges of parameters and local variables can be split at recursive calls through program transformations. Such program transformations allowed us to further optimize the stack size of all our benchmarks.
Keywords :
embedded systems; optimisation; recursive functions; embedded systems; execution speed; live range splitting; optimization; recursive function calls; Constraint optimization; Costs; Embedded computing; Embedded system; Manufacturing; Optimizing compilers; Random access memory; Read only memory; Read-write memory; Runtime;
Conference_Titel :
Innovations in Information Technology, 2007. IIT '07. 4th International Conference on
Conference_Location :
Dubai
Print_ISBN :
978-1-4244-1840-4
Electronic_ISBN :
978-1-4244-1841-1
DOI :
10.1109/IIT.2007.4430400