|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Activation record structure for stack-based Fibonacci. More...
Public Attributes | |
| int | n |
| Parameter: which Fibonacci number to compute. | |
| long long | f1 |
| Local variable: stores result of fib(n-1) | |
| long long | result |
| Return value to pass to caller. | |
| char | return_point |
| Continuation: where to resume after return. | |
Activation record structure for stack-based Fibonacci.
This structure represents a stack frame (activation record) containing:
This mirrors exactly what the compiler generates for each function call.
Definition at line 263 of file fibonacci.C.
Local variable: stores result of fib(n-1)
Definition at line 266 of file fibonacci.C.
| int Activation_Record::n |
Parameter: which Fibonacci number to compute.
Definition at line 265 of file fibonacci.C.
Return value to pass to caller.
Definition at line 267 of file fibonacci.C.
| char Activation_Record::return_point |
Continuation: where to resume after return.
Definition at line 268 of file fibonacci.C.