基于堆栈的机器的 LLVM 后端

发布于 2024-11-11 16:13:46 字数 48 浏览 4 评论 0原文

有谁知道基于堆栈的机器的开源 LLVM 后端的任何示例吗?我需要这个用于教育目的。

Does anyone know any example of an open source LLVM backend for a stack based machine? I need this for education purposes.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

鸵鸟症 2024-11-18 16:13:46

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文