Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/silverbirder/rustscript

A Toy Javascript Compiler that parses javascript and compiles JIT with LLVM(Rust:inkwell).
https://github.com/silverbirder/rustscript

compiler inkwell javascript llvm rust toy

Last synced: about 2 months ago
JSON representation

A Toy Javascript Compiler that parses javascript and compiles JIT with LLVM(Rust:inkwell).

Awesome Lists containing this project

README

        

# rustscript
A Toy Javascript Compiler that parses javascript and compiles JIT with LLVM([Rust:inkwell](https://github.com/TheDan64/inkwell/)).

![overview](./overview.png)

# environment

```
$ sw_vers
ProductName: macOS
ProductVersion: 11.6
BuildVersion: 20G165
$ cargo --version && rustc --version
cargo 1.56.0-nightly (18751dd3f 2021-09-01)
rustc 1.56.0-nightly (50171c310 2021-09-01)
```

# development

```
$ cargo run
```

# laboratory

Lab to output ll files easily from C language.

# link

* [LLVM入門 - javascriptをLLVM(Rust:inkwell)でJITコンパイルするまで - silverbirder](https://silver-birder.github.io/blog/contents/intro_to_LLVM-JIT_compilation_of_javascript_with_LLVM_Rust_inkwell)