News for hackers. Stuff that matters.
Re:Coroutines in C (2000) by com2kid on Sunday February 07, 2016 @12:39AM (#11051784)
In embedded land, you can just make something that works like setjmp and memcopy the stack off to someplace convenient.

Super useful if you want something resembling modern programming in an embedded context. It is a bit better than callback hell, but you do end up using memory for all those saved off stacks, so that limits how many co-routines can be in play at once. Thankfully embedded projects tend to have small stacks. :)

There are no comments on this comment yet.