clj wasm:Clojure风格的WASM的文本格式 源码
Clojure风格的WASM的文本格式 变成这个 ( module ( defn add [^i32 a ^i32 b] ( let [x 1 ] ( if ( = a x) ( + a x) ( + a b)))) ( defn main [] ( add 9 8 ))) 进入这个 (module (type $return_add (func (param $a i32) (param $b i32) (result i32))) (func $add (param $a i32) (param $b i32) (result i32) (local $x i32) (block (result i32) (local.set $x (i32.const 1 )) ( if (
用户评论