lewissbaker.github.io
lewissbaker.github.io copied to clipboard
Discussion for "C++ Coroutines: Understanding the Compiler Transform"
Discussion for the post at https://lewissbaker.github.io/2022/08/27/understanding-the-compiler-transform
Also see: Reddit: https://www.reddit.com/r/cpp/comments/x0bj5z/c_coroutines_understanding_the_compiler_transform/ HackerNews: https://news.ycombinator.com/item?id=32642832
Can you add permalinks to the section headers? e.g. I can manually link to, let's say, Step 6 by going through the html source but it'd be nice if there were just a link right there. Something like this?.
Also, given the length, a table of contents would be 👌. I'm sure there's some plugin somewhere you can add to do that easily, I just don't know what that is.
@brevzin Thanks for the tip.
I've added anchor links and a table-of-contents now.
very good post!
Step 13: Implementing symmetric-transfer and the noop-coroutine
this is a loop in coroutine_handle resume function,so how can the compiler implement with tail-call? or just for introduce the principles, there is no loop in real completed generated code?