8000 GitHub - kechako/wasmexec
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

kechako/wasmexec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wasmexec

WebAssembly のランタイムを実験的に実装していきます。

モジュール構成

  • cli: CLI アプリケーション

  • cmd

    • wasmexec: wasmexec コマンド

  • mod: wasm モジュール定義・デコーダー

    • instruction: wasm の命令

    • text: Text Format のデコーダー

      • sexp: S式のパーサー

実行方法

go run ./cmd/wasmexec xxxxx.wat

対応している命令

Numeric Instructions
  • i32.const

  • i32.add

  • i32.sub

  • i32.mul

  • i32.div_s

  • i32.eqz

  • i32.eq

  • i32.ne

  • i32.lt_s

  • i32.gt_s

  • i32.le_s

  • i32.ge_s

Parametric Instructions
  • drop

Variable Instructions
  • local.get

  • local.set

  • local.tee

Control Instructions
  • block

  • return

  • call

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0