Re:Coroutines in C with Arbitrary Arguments
by mtanski on Sunday April 19, 2015 @09:44AM
(#9403100)
The code in question strikes me as being a proof of concept. Obviously, a more complete implementation would be more complex.
In the real world you'd create a stack with mmap with the MMAP_STACK flag. You would ensure the stack is property aligned and make sure there's a guard page at the end of it.
In the real world you'd create a stack with mmap with the MMAP_STACK flag. You would ensure the stack is property aligned and make sure there's a guard page at the end of it.