libco icon indicating copy to clipboard operation
libco copied to clipboard

can I use this with pure C code on non-X86?

Open laoshaw opened this issue 7 years ago • 5 comments

is there an easy way I can use libco in C environment directly as it is labelled as "C/C++ library", all examples are in C++, why does it have "C" there if hacks/flags/etc are needed to get it work(yes I know you can mix C/C++ with extra-efforts)

does this support ARM/MIPS architecture?

laoshaw avatar Jul 15 '18 15:07 laoshaw

agree, have the same question, how to use it in pure C project?

zigzag555 avatar Sep 21 '18 11:09 zigzag555

There have a pure C coroutines implementation: https://github.com/heiher/hev-task-system

ARM/MIPS and RISC-V ... architectures are supported.

heiher avatar Nov 18 '18 16:11 heiher

The original version of libco supports ARM, ARM64, PowerPC, PowerPC64, C's setjmp/longjmp, POSIX's ucontext and Windows' fibres.

Screwtapello avatar Sep 26 '19 07:09 Screwtapello

https://github.com/xhawk18/s_task

hardware: x86, x64, arm, aarch64, mips, mips64, cortex-m0/m3/m4, stm8 os: windows, linux, macos, android, mingw, and even no OS network: libuv other: support await / async

xhawk18 avatar Mar 25 '20 05:03 xhawk18

https://github.com/idealvin/coost.git

跨平台类go语言编程的c++协程库。

opt-liang avatar Oct 18 '22 04:10 opt-liang