by FullyFunctional · 3y ago · 0 comments
Another consequence of the RAS is that co-routines switching is more expensive than they might appear at first. RISC-V has encoding hints to mark call(jal)/returns that are actually co-routine switching but the full cost can't be avoided.
Of course there is always going to be a penality for stackful coroutines that yield deep into a callstack.