基于堆栈的机器的 LLVM 后端
有谁知道基于堆栈的机器的开源 LLVM 后端的任何示例吗?我需要这个用于教育目的。
Does anyone know any example of an open source LLVM backend for a stack based machine? I need this for education purposes.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
JVM 是一个基于堆栈的虚拟机。 VMKit 是 LLVM 的一个开源项目,它实现了带有 LLVM 后端的 JVM。 VMKit 的想法是创建一个用于构建虚拟机(或托管运行时环境)的工具包,例如 JVM、CLI/CLR、R 运行时等。要了解更多信息,请参阅 Nicolas Geoffray 的博士论文。虽然该项目已停用,源代码仍然可用。
此外,微软还发布了llilc,它是一个针对 IL/MSIL/CIL 的 LLVM JIT 编译器(可以是争论的是堆栈机)。 JIT 代码可以在此处找到。
The JVM is a stack-based virtual machine. VMKit was an open-source project of LLVM which implemented a JVM with a LLVM backend. The idea of VMKit was to create a toolkit for building virtual machines (or managed runtime environments) such as JVM, CLI/CLR, R's runtime etc. To find out more, see Nicolas Geoffray's PhD thesis. While the project is retired, the source code is still available.
Also, Microsoft have released llilc which is a LLVM JIT compiler for IL/MSIL/CIL (which could be argued is a stack machine). The JIT code can be found here.