简体   繁体   English

nodejs 如何理解/阅读 C++ 代码?

[英]How does nodejs understand/read c++ code?

I clearly understand Javascript only.我只清楚地了解 Javascript。 I am curious about how Node.js understand C++ code as they are completely different things.我很好奇 Node.js 如何理解 C++ 代码,因为它们是完全不同的东西。 How do they communicate with each other?他们是如何相互交流的?

Using language bindings.使用语言绑定。

The JS interpreter is able to import and call into exported linker symbols from a library, and with language bindings you can provide these, eg by writing some functionality in C++. JS 解释器能够从库中导入和调用导出的链接器符号,并且通过语言绑定,您可以提供这些,例如通过在 C++ 中编写一些功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM