Running/Interpreting C on top of the JVM?

前端 未结 5 470
隐瞒了意图╮
隐瞒了意图╮ 2020-12-14 01:52

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

5条回答
  •  不知归路
    2020-12-14 02:10

    It seems that LLJVM can also meet your requirement.

    LLJVM: Source code is first compiled to LLVM intermediate representation (IR) by a frontend such as llvm-gcc or clang. LLVM IR is then translated to Jasmin assembly code, linked against other Java classes, and then assembled to JVM bytecode.

提交回复
热议问题