(module ;; this is simple function that adds a couple of parameters (func $add (param $a i32) (param $b i32) (result i32) (get_local $a) (get_local $b) (i32.add) ) ;; this statement exports the function to the host environment (export "add" (func $add)) ) `;