Comment Comment by spc476 With cooperative multitasking (coroutines) you can get by with saving less CPU state. I do this for my C coroutines package [1] for x86 and x86-64 by only saving the registers required by the calling convention.[1] https://github.com/spc476/C-Coroutines parent spc476 6 years ago
[1] https://github.com/spc476/C-Coroutines