by headlessclayton · 6y ago · 0 comments
There is an implementation that uses ucontext, which you can enable with defining MARL_FIBERS_USE_UCONTEXT. That said, ucontext is a bit broken on macOS, and I haven't attempted to maintain this codepath, so may be removed in the near future.
Assuming you know a bit of assembly for your platform and the ABI (specifically caller vs callee saved registers), adding new platforms is not too difficult. For example: ppc64 and MIPS64 support were both added by external contributors.
We're always open to contributions, so if you write a nice generic implementation using setJmp/longJmp, I'm sure it would be accepted!
Cheers!
No comments yet.