wabt icon indicating copy to clipboard operation
wabt copied to clipboard

Run wasm-interp on specific (exported) functions

Open amirbawab opened this issue 6 years ago • 1 comments

Closes: #198

Minor changes allowing 'wasm-interp' to be executed for specific exported wasm functions. Example syntax:

./wasm-interp                              \
-r "my_func" -a "i32:1" -a "i32:2", etc... \
file.wasm

./wasm-interp          \
-r "func_A" -a "f32:1" \
-r "func_A" -a "f32:2" \
-r "func_B" -a "i64:1" \
file.wasm

Currently supported types: i32, i64, f32, f64

amirbawab avatar Sep 25 '19 01:09 amirbawab

Wow, thanks for doing this! I just skimmed the code, but in general this looks good. @jgravelle-google can you do a more thorough review?

binji avatar Sep 25 '19 20:09 binji

Closing as stale. :-( This would still be nice to have.

keithw avatar Aug 16 '22 18:08 keithw

@keithw is this something is still interesting to have? I would be keen to work on it if needs any extra work on this PR.

raphamorim avatar Mar 08 '23 21:03 raphamorim

If it would be helpful to you, I think we'd happily take a PR!

keithw avatar Mar 08 '23 21:03 keithw

Sounds good @keithw! Will create a new PR and mention this one. Not sure if I like the way using -r and -a but we can iterate on API changes as well.

raphamorim avatar Mar 16 '23 09:03 raphamorim