嵌入:mono vs lua [英] Embedding: mono vs lua
问题描述
我有兴趣听听人们在C / C ++应用程序中嵌入单声道(.NET的开源实现)的经验。如何分发这样的应用程序和什么是依赖关系?我已经测试在OS X和单声道作为一个巨大的框架(数百MB)。我的应用程序的用户都需要这个大框架,或者它可以被删除或一切都编译成主可执行文件。
I am interested in hearing about peoples experience with embedding mono (open source implementation of .NET) in a C/C++ application. How is it to distribute such an application and what are the dependencies? I have tested on OS X and mono comes as a huge framework (hundreds of MB). Do users of my app all need this big framework or can it be stripped down or everything be compiled into the main executable.
我以前有过在一个C ++应用程序中嵌入Lua的经验,它的工作原理非常好,因为我可以静态链接整个lua解释器和我的主要可执行文件。所以我没有外部依赖。
I previously have experience with embedding Lua in a C++ app, and that works really well because I can link statically the whole lua interpreter in with my main executable. So I have no external dependencies. Is it possible to do something similar with mono?
这里的任何Lua人都可以评论他们如何发现与Lua相比的单声道?
Any Lua people here who can comment on how they found mono compared to Lua?
PS:通过嵌入我的意思是一个C ++应用程序,它初始化一个单一环境和加载一个.NET程序集并执行它,然后允许说C#代码在汇编和C ++方法之间的通信主要可执行。
PS: By embedding I mean a C++ application which initializes a mono environment and loads a .NET assembly and executes it and then allows for communication between say C# code in assembly and C++ methods in main executable.
推荐答案
您应该还可以看看Mono的 Small Footprint 页面,介绍如何嵌入较小的运行时。他们用月光自己做。
You should probably also take a look at Mono's Small Footprint page that describes how you can embed a smaller runtime. Heck, they do it themselves with Moonlight.
我希望这有助于。
这篇关于嵌入:mono vs lua的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!