任何C / C ++到非本地字节码编译/解释器? [英] Any C/C++ to non-native bytecode compiler/interpreters?

查看:137
本文介绍了任何C / C ++到非本地字节码编译/解释器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如标题所示,是否有任何C / C ++字节码编译器/解释器?我在一个解释性语言中编写一个应用程序,它取决于某些库是完全可交叉编译的(在特定平台的编译期间没有特殊的标志来指示代码的变化),但用C和C ++编写。

As the title indicates, are there any C/C++ bytecode compilers/interpreters? I'm writing an application in an interpreted language that depends on certain libraries that are fully cross-compilable (there are no special flags to indicate code changes during compilation for a certain platform) but are written in C and C++. Rather than shipping n-platform-specific-libs with each platform, it would be nice to ship one set of libs which are interpreted by one platform specific interpreter.

可能的和可能的结果是,可以将一个平台特定的解释器/或可用?

Possible and/or available?

EDIT1:
有问题的解释语言是Python,但我也可以使用Ruby。

The interpreted language in question is Python, though I may also use Ruby.

推荐答案

您使用哪种解释语言?如果它有一个基于.NET的实现(例如IronPython),你可以使用它与C ++ / CLI编译器产生.NET CLR和Mono的字节码。

Which interpreted language are you using? If it has a .NET based implementation (e.g. IronPython) you could possibly use it with the C++/CLI compiler to produce byte code for the .NET CLR and Mono.

如果你完全控制你的C ++库,这只是可行的。

This is only likely to be feasible if you have full control over your C++ libraries.

这篇关于任何C / C ++到非本地字节码编译/解释器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆