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

Just My Type

Just My Type

Simon Garfield / Profile Books / 2010-10-21 / GBP 14.99

What's your type? Suddenly everyone's obsessed with fonts. Whether you're enraged by Ikea's Verdanagate, want to know what the Beach Boys have in common with easy Jet or why it's okay to like Comic Sa......一起来看看 《Just My Type》 这本书的介绍吧!

html转js在线工具
html转js在线工具

html转js在线工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具