在 JVM 之上运行/解释 C? [英] Running/Interpreting C on top of the JVM?

查看:17
本文介绍了在 JVM 之上运行/解释 C?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在 JVM 之上运行纯 c 代码?
不通过 JNI 连接,运行,就像你可以通过 JRuby 运行 ruby​​ 代码,或者通过 Rhino 运行 javascript.

Is there a way to run plain c code on top of the JVM?
Not connect via JNI, running, like you can run ruby code via JRuby, or javascript via Rhino.

如果目前没有解决方案,您建议我应该怎么做?
显然我想使用尽可能多的部分解决方案来实现它.

If there is no current solution, what would you recommend I should do?
Obviously I want to use as many partials solutions as I can to make it happen.

ANTLR 似乎是一个不错的起点,拥有完整的ANSI C"语法实现...
我应该使用 ANTLR 生成的代码在 JVM 上构建一个玩具"虚拟机吗?

ANTLR seems like a good place to start, having a full "ANSI C" grammar implementation...
should I build a "toy" VM over the JVM using ANTLR generated code?

推荐答案

2012-01-26 更新:根据 公司网站上的这个页面该产品已被买断,不再可用.

Updated 2012-01-26: According to this page on the company's site the product has been bought out and is no longer available.

是的.

这里是 一个生成 JVM 字节码的商业 C 编译器.

这篇关于在 JVM 之上运行/解释 C?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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