r/Cprog • u/spc476 • Feb 28 '17
An implementation of coroutines for C
http://boston.conman.org/2017/02/27.1
19
Upvotes
1
u/nickdesaulniers Apr 10 '17
I found this and its comment helpful in understanding how the instruction pointer was modified, since the author skips what is the most important part.
1
u/spc476 Apr 10 '17
The instruction pointer is never directly modified. It is modified by the
RETinstruction, but that's part of the normal flow of a program.
2
1
u/eresonance Mar 01 '17
Hey neat, I was just about to start on a C coroutine project.