[This page is auto-generated; please prefer to read the article’s PDF Form.]
Here is how the vc_stack and iterations will work together. At the beginning of recur_stack(), we set up the vc_stack with only one frame which specifies the state to use for the very first virtual-call. After this, we start the iterations. At the beginning of each iteration, we will read the topmost frame of vc_stack, which becomes the current frame for that iteration. Then we execute some logic in the iteration according to the state specified in the current frame.
Copyright © 2020 Nitin Verma. All rights reserved.