diff --git a/platforms/python/examples/01-coremark.py b/platforms/python/examples/01-coremark.py index 1ba904d..9d5aec2 100755 --- a/platforms/python/examples/01-coremark.py +++ b/platforms/python/examples/01-coremark.py @@ -17,7 +17,7 @@ rt = env.new_runtime(4096) with open(wasm_fn, "rb") as f: mod = env.parse_module(f.read()) rt.load(mod) - mod.link_function("env", "clock_ms", "i()", clock_ms) + mod.link_function("env", "clock_ms", "I()", clock_ms) wasm_run = rt.find_function("run") diff --git a/platforms/python/examples/02-metered.py b/platforms/python/examples/02-metered.py index 9428642..0621c92 100755 --- a/platforms/python/examples/02-metered.py +++ b/platforms/python/examples/02-metered.py @@ -17,10 +17,10 @@ rt = env.new_runtime(4096) with open(wasm_fn, "rb") as f: mod = env.parse_module(f.read()) rt.load(mod) - mod.link_function("env", "clock_ms", "i()", clock_ms) + mod.link_function("env", "clock_ms", "I()", clock_ms) # Gas metering will only apply to metered (pre-instrumented) modules -mod.gasLimit = 200_000_000 +mod.gasLimit = 500_000_000 wasm_run = rt.find_function("run") diff --git a/platforms/python/examples/wasm/coremark-metered.wasm b/platforms/python/examples/wasm/coremark-metered.wasm index 9a93e30..ade41e1 100644 Binary files a/platforms/python/examples/wasm/coremark-metered.wasm and b/platforms/python/examples/wasm/coremark-metered.wasm differ diff --git a/platforms/python/examples/wasm/coremark-minimal.wasm b/platforms/python/examples/wasm/coremark-minimal.wasm index 8f79871..c5d6b87 100755 Binary files a/platforms/python/examples/wasm/coremark-minimal.wasm and b/platforms/python/examples/wasm/coremark-minimal.wasm differ diff --git a/test/wasi/coremark/coremark-minimal.wasm b/test/wasi/coremark/coremark-minimal.wasm index 627788e..c5d6b87 100755 Binary files a/test/wasi/coremark/coremark-minimal.wasm and b/test/wasi/coremark/coremark-minimal.wasm differ