Choose between swap-stack with and without parameters.
Created by: wks
Coroutines may communicate with each other by yielding and, at the same time, passing data between stacks. There are two ways this can be done.
- Allocate memory region in one stack using ALLOCA and let the other stack write data in those region.
- Let the swap-stack operation take parameters.
The first approach is currently appreciated by @wks and @hosking, but (Dolan et al.)[http://dl.acm.org/citation.cfm?id=2400695] proposed the second approach, but does not discuss the difference between the two.
We need to choose the appropriate one.