3 ms·
Note that SGT's coroutines are stackless, whereas this article's coroutines have their own stack. It's also worth noting that you don't need asm to change the
by fanf2 6y ago
Note that SGT's coroutines are stackless, whereas this article's coroutines have their own stack.
It's also worth noting that you don't need asm to change the stack pointer, if you don't mind being imprecise about its exact value by the size of a function invocation frame or so: you can use alloca() or variable length arrays to do arithmetic on the stack pointer! https://fanf.livejournal.com/105413.html https://fanf.livejournal.com/105413.html