Proceedings of the 2007 International Conference on Compilers, Architecture, and Synthesis for Embedded Systems 2007
DOI: 10.1145/1289881.1289892
|View full text |Cite
|
Sign up to set email alerts
|

Stack size reduction of recursive programs

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 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 … Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
2
1
1

Citation Types

0
4
0

Year Published

2007
2007
2018
2018

Publication Types

Select...
3
3

Relationship

1
5

Authors

Journals

citations
Cited by 6 publications
(4 citation statements)
references
References 7 publications
0
4
0
Order By: Relevance
“…The Signal Flow Graphs represented herein are truly insightful for recursion elimination or removal [6,10,[73][74][75][76][77][78][79][80], i.e., for replacing a recursive algorithm by a non-recursive or iterative one. Non-recursive algorithms already exist for the binomial coefficients [6,20] and for the binomial probability [1][2][3]6,10,23,24].…”
Section: Fig 2 Two-dimensional Signal Flow Graph For the Probability Mass Function (Pmf) Of The Binomial Distributionmentioning
confidence: 99%
“…The Signal Flow Graphs represented herein are truly insightful for recursion elimination or removal [6,10,[73][74][75][76][77][78][79][80], i.e., for replacing a recursive algorithm by a non-recursive or iterative one. Non-recursive algorithms already exist for the binomial coefficients [6,20] and for the binomial probability [1][2][3]6,10,23,24].…”
Section: Fig 2 Two-dimensional Signal Flow Graph For the Probability Mass Function (Pmf) Of The Binomial Distributionmentioning
confidence: 99%
“…The work in [9] employs global function inlining to reduce maximum stack memory requirements. Some work proposes to reduce the stack size by keeping only one instance of a local variable in recursive programs if it is guaranteed that this local variable is at all recursive calls [10]. In this work, we conduct stack trimming from a different angle by manipulating frames of the caller and callee functions.…”
Section: Related Workmentioning
confidence: 99%
“…Schäckeler and Shang [18] observe that many local variables are dead at recursive calls and propose to allocate them globally thus evading them from stack frames. Taken to the extreme, this idea amounts to the well-known tail call optimization [9], where the entire frame is reused by the next function call if all local variables are dead and there is no further computation after the call.…”
Section: Related Workmentioning
confidence: 99%