ユーザ用ツール

サイト用ツール


software:webassembly

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
software:webassembly [2021/10/29 21:25] – [Emscripten (emsdk)] ogasoftware:webassembly [2021/10/29 23:06] (現在) – [WASI] oga
行 60: 行 60:
 $ node a.out.js $ node a.out.js
 </code> </code>
 +
 +
 +===== WASI =====
 +
 +Emscripten とは異なり、共通の Systemcall を使用した wasm の実行環境があります。
 +
 +  * https://github.com/WebAssembly/wasi-sdk
 +
 +
 +<code>
 +$ $WASI_SDK_ROOT/bin/clang --target=wasm32-wasi --sysroot=$WASI_SDK_ROOT/share/wasi-sysroot  main.cpp
 +$ wasmtime a.out
 +</code>
 +
 +
 +  * 実行するには専用のランタイムが必要です。
 +
 +
 +
 +
 +
  
  
software/webassembly.1635510322.txt.gz · 最終更新: 2021/10/29 21:25 by oga

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki