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

Domain-Driven Design

Domain-Driven Design

Eric Evans / Addison-Wesley Professional / 2003-8-30 / USD 74.99

"Eric Evans has written a fantastic book on how you can make the design of your software match your mental model of the problem domain you are addressing. "His book is very compatible with XP. It is n......一起来看看 《Domain-Driven Design》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具