Skip to content

Commit

Permalink
add runner script and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sskeirik committed Dec 9, 2024
1 parent e2166d7 commit b08e386
Show file tree
Hide file tree
Showing 3 changed files with 570 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,18 @@ The target `test` contains all the currently passing tests.
make test
```

To execute the Wasm VM locally, you can use the `wasm` Poetry script from the repo root as follows:

```sh
poetry -C pykwasm run wasm <llvm-build-dir> <wasm-file> [-cellname:sort=cellvalue...]
```

For example, after locally building the ULM-integrated Wasm, the local build of the ULM-integrated Wasm can be executed as follows:

```sh
poetry -C pykwasm run wasm ./build/wasm pykwasm/src/tests/integration/binary/basic-features.wat -gas:Int=0 -create:Bool=false -entry:String=init
```

Resources
---------

Expand Down
1 change: 1 addition & 0 deletions pykwasm/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ authors = [
]

[tool.poetry.scripts]
wasm = "pykwasm.run_wasm:main"
wasm2kast = "pykwasm.wasm2kast:main"
kwasm = "pykwasm.scripts.kwasm:main"
kwasm-convert = "pykwasm.scripts.convert:main"
Expand Down
Loading

0 comments on commit b08e386

Please sign in to comment.