higan-emu / libco

libco is a cooperative multithreading library written in C89.
Other
125 stars 25 forks source link

doc: Add example programs using libco. #29

Closed Screwtapello closed 3 years ago

Screwtapello commented 3 years ago

These examples were originally included in various standalone libco releases, not as part of any higan or bsnes release. test_timing in particular is a benchmark and smoke-test as well as a basic example of how to use libco.

Screwtapello commented 3 years ago

As an aside, do you remember why the frame pointer is being omitted in the build files? Is that necessary in some cases, or is it just an optimization?

I don't. The original build script only built the test_timing benchmark, so I assume Near reached for every ounce of optimisation. I copy/pasted the compiler arguments to the other examples for consistency, but since they're not benchmarks I guess it's not that big a deal.