C++ 20 coroutines on AVR

Viewed 112

Is it possible to use C++20 coroutines on AVR µC? I'm currently working on a hobby embedded project and being able to use proper coroutines would be really nice. I'm aware that they come with dynamic memory requirements, but I'm not that constraint that that'd be a problem.

In the worst case, I can implement everything myself, except for std::coroutine_handle. I think this one requires compiler support (at least after a quick scan of MSVC's implementation).

So is there a working version of std::coroutine_handle available for AVR targets (and anything else that requires special compiler support)?

0 Answers
Related