Skip to content

moonbitlang/moonbit-native-runtime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Runtime for native backend of MoonBit

This repository maintains the runtime for the native backend of MoonBit, including:

  • type definitions for runtime layout of MoonBit object
  • fundamental runtime operations for memory management and builtin data type, such as array
  • some native API used by moonbitlang/core

File hierarchy

  • include/moonbit-fundamental.h: used to avoid including system header in some pipeline
  • include/moonbit.h: type definitions for runtime layout of MoonBit object and public macro/functions for C FFI stub
  • runtime.c: implementation of the runtime
  • runtime_core.c: some fundamental runtime operations that are directly inlined into code generated by MoonBit

Contribution

This repository is a mirror of the runtime in MoonBit compiler, and is updated regularly. External contributions and bug reports are welcomed. Patches will be manually merged to the MoonBit compiler.

Attribution

Some functions in runtime_core.c come from musl.

About

Runtime for the native backend of MoonBit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages