LLVM 字节码解释器 Sulong

码农软件 · 软件分类 · 编译器 · 2019-12-07 20:42:14

软件介绍

Sulong Logo

Sulong 是一个高性能的 LLVM 字节码解释器,基于 Oracle Labs 的 GraalVM 构建。

通过 Sulong 你可以执行 C/C++、Fortran 和其他可以在 GraalVM 上转成 LLVM 字节码的编程语言。为了执行一个程序,你需要使用一个 LLVM 前端工具(如 clang)将程序编译成 LLVM 字节码。

Sulong 是 Graal VM 的一部分,Graal VM 支持 Linux 和 MacOS ,包括 32 位和 64 位平台。

使用方法:

1. 示例代码:

#include <stdio.h>

int main() {
  printf("Hello from Sulong!");
  return 0;
}

2. 编译成 LLVM 字节码:

clang -O1 -c -emit-llvm -o test.bc test.c

3. 在 Graal VM 上执行:

lli test.bc

本文地址:https://codercto.com/soft/d/20655.html

Algorithms Unlocked

Algorithms Unlocked

Thomas H. Cormen / The MIT Press / 2013-3-1 / USD 25.00

Have you ever wondered how your GPS can find the fastest way to your destination, selecting one route from seemingly countless possibilities in mere seconds? How your credit card account number is pro......一起来看看 《Algorithms Unlocked》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具