用于基于堆栈的计算机的LLVM后端 [英] LLVM backend for stack based machine

查看:85
本文介绍了用于基于堆栈的计算机的LLVM后端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道基于堆栈的计算机的开源LLVM后端的任何示例吗?我出于教育目的需要它.

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

推荐答案

JVM是基于堆栈的虚拟机. VMKit 是LLVM的开源项目,该项目使用LLVM后端实现了JVM. VMKit的想法是创建一个用于构建虚拟机(或托管运行时环境)的工具包,例如JVM,CLI/CLR,R的运行时等.要了解更多信息,请参见源代码仍然可用.

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.

此外,微软还发布了 llilc ,它是针对IL/MSIL/CIL的LLVM JIT编译器(可以说是堆叠机).可以在此处找到JIT代码.

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.

这篇关于用于基于堆栈的计算机的LLVM后端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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