Coder Social home page Coder Social logo

priteshrnandgaonkar / deboost.context Goto Github PK

View Code? Open in Web Editor NEW

This project forked from septag/deboost.context

0.0 2.0 0.0 155 KB

"Deboostified" version of boost.context (coroutines), Plain and simple C API for context switching. Easy build on multiple platforms.

License: MIT License

Assembly 93.85% C 1.28% CMake 4.64% C++ 0.15% Batchfile 0.08%

deboost.context's Introduction

deboost.context

"Deboostified" version of boost.context (coroutines), Plain and simple C API for context switching. Easy build on multiple platforms.

Build

Currently supported platforms

  • Windows (x86_64, Win32)
  • Linux (x86_64/x86)
  • OSX (x86_64/x86)
  • Android (ARM/x86/ARM64/x86_64)
  • iOS (Arm64, Arm7, x86_64, i386)

iOS

I've made an extra xcode project files for iOS projects/xcode/fcontext because I didn't know how to set different ASM files for each ARM architecture in cmake. So If you know how to do it, I'd be happy if you tell me.
So, you can use the included toolchain file or use your own, just define IOS to include the xcode project instead of generating it with cmake.

cd deboost.context
mkdir .build
cd .build
cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/ios.toolchain.cmake -G Xcode

Usage

Link your program with fcontext.lib/libfcontext.a and include the file fcontext.h.
See include/fcontext/fcontext.h for API usage.
More info is available at: boost.context

Credits

  • Boost.context: This library uses the code from boost.context github

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.