本文介绍了将Erlang与C ++集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
-
:在最新的Erlang / OTP版本中可用,允许您实现任何功能在C。
-
:您可以将C代码链接到Erlang VM,并使用port_command进行访问。
-
C节点:使用库,您可以模拟一个虚拟机,并使用Erlang分发格式与您的Erlang虚拟机通话。
What interfaces exist to tie Erlang with C++?
解决方案
Native implemented functions: available in the latest Erlang/OTP version, allows you to implement any of your functions in C.
Port drivers: you can link a C code to the Erlang VM, and access it using port_command.
C Nodes: With the ei library you can mimic a VM and talk to your Erlang VMs using the Erlang distribution format.
这篇关于将Erlang与C ++集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!