13 Star 39 Fork 14

matrixorigin/matrixone

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

MatrixOne CGO Kernel

This directory contains cgo source code for MO. Running make should produce two files to be used by go code. On go side, go will include "mo.h" and -lmo.

mo.h
libmo.a

mo.h should be pristine, meaning it only contains C function prototype used by go. The only datatypes that can be passed between go and c code are int and float/double and pointer.
Always explicitly specify int size such as int32_t, uint64_t. Do not use int, long, etc.

Implementation Notes

  1. Pure C.
  2. Use memory passed from go. Try not allocate memory in C code.
  3. Only depends on libc and libm.
  4. If 3rd party lib is absolutely necessary, import source code and build from source. If 3rd party lib is C++, wrap it completely in C.
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/matrixorigin/matrixone.git
git@gitee.com:matrixorigin/matrixone.git
matrixorigin
matrixone
matrixone
main

搜索帮助