Zhangyx24 opened issue #4255:
Does wasmtime support interpreter mode?
cfallin commented on issue #4255:
Hi @Zhangyx24 -- unfortunately no, we do not currently have an interpreter backend for Wasm execution. This is something we would be open to having, if someone is interested in building it, but currently I'm not aware of anyone who is planning to do so.
I'll go ahead and close this issue since the question is answered but again, we're happy to talk further if someone wants to build this!
cfallin closed issue #4255:
Does wasmtime support interpreter mode?
Zhangyx24 commented on issue #4255:
Thanks for you answer!
Can I assume that wasmtime supports only JIT and AOT modes?
Zhangyx24 deleted a comment on issue #4255:
Thanks for you answer!
Can I assume that wasmtime supports only JIT and AOT modes?
Zhangyx24 commented on issue #4255:
@cfallin Thanks for your answer!
Can we assume that wasmtime supports only JIT and AOT modes?
cfallin commented on issue #4255:
Yes, it supports both JIT and AOT.
wasmtime run file.wasm
will JIT by default, whilewasmtime compile file.wasm
will produce an AOT objectfile.cwasm
, and you can then dowasmtime run --allow-precompiled file.cwasm
.
cfallin commented on issue #4255:
(To clarify a bit more: the default "JIT" is an all-at-once compilation at load time, so it does not JIT on-demand as functions call each other, for example. But it is codegen in-process just before running the code, so in that sense it is a JIT.)
Zhangyx24 commented on issue #4255:
Thank you very much! I feel much clearer.
hungryzzz commented on issue #4255:
(To clarify a bit more: the default "JIT" is an all-at-once compilation at load time, so it does not JIT on-demand as functions call each other, for example. But it is codegen in-process just before running the code, so in that sense it is a JIT.)
Hi, so even on the JIT mode, the code will be only compiled once, right? And it will not be optimized during execution?
bjorn3 commented on issue #4255:
Indeed. Wasmtime doesn't have multiple optimization tiers, nor speculative optimization. All compilation happens at once when creating the Module from a wasm module.
hungryzzz commented on issue #4255:
Okay, I got it! Thank you for your answer!
Last updated: Dec 23 2024 at 13:07 UTC