Rust Coroutines on AArch64 (ARM64)
The amazing book Asynchronous Programming in Rust by Carl Fredrik Samson has a chapter on implementing stackful coroutines (fibers) in Rust for x86_64 architecture, both Linux and MacOS. But unlike other chapters, no AArch64 implementation was provided for the sake of simplicity. I tried to port it to AArch64, and this post describes my approach. This text is just an additional material for the book. I presume you are familiar either with it or with the original code at ch05/c-fibers. ...