Unrolling Recursions Saves Space
Report ID:
TR-363-92
Authors:
Date:
February 1992
Pages:
3
Download Formats:
Abstract:
Partially unrolling a single-branch, non-tail recursion reduces the number of
stack frames allocated. This simple transformation can speed up the program
and avoid stack overflow.