4 ms·
Heads up: Though amazing, the compiler makes use of the deprecated POSIX setcontext API[1], which means you may have trouble running it on some modern distribut
by Conlectus 6y ago
Heads up: Though amazing, the compiler makes use of the deprecated POSIX setcontext API[1], which means you may have trouble running it on some modern distributions.
[1] https://en.wikipedia.org/wiki/Setcontext https://en.wikipedia.org/wiki/Setcontext
- shakna 6y agoHowever, you can switch to pthread instead by using the -pthread flag or the -D_REENTRANT and -lpthread flags, if you don't want to rely on setcontext.
- aidenn0 6y agoDo modern distros really not have setcontext? If they don't it shouldn't be too hard to implement in assembly.
- fwsgonzo 6y agoIt's a very tiny API, and requires little assembly, so I agree.