Stream: general

Topic: AOT


view this post on Zulip Venugopala Krishna Vemula (Mar 22 2021 at 18:14):

Hi, I am looking on how can use AOT compilation for Wasmtime ( We have tried in Lucet AOT).. trying to find some thing similar in Wasmtime. I could find any info in wasmtime documentation w.r.to AOT. can any one point to me?

view this post on Zulip Yury Delendik (Mar 22 2021 at 18:21):

No docs at this moment. I'm helping with the similar thing.

view this post on Zulip Venugopala Krishna Vemula (Mar 22 2021 at 18:23):

Thanks Yury for the quick response. It would be great, if you can let me know how to that.. or any clues

view this post on Zulip Yury Delendik (Mar 22 2021 at 18:23):

I have https://github.com/yurydelendik/wasmtime/tree/aot-ftw-1 if you want just to play, but eventually we want to: a) disconnect JIT from runtime, b) add Wasmtime API for that

Standalone JIT-style runtime for WebAsssembly, using Cranelift - yurydelendik/wasmtime

view this post on Zulip Venugopala Krishna Vemula (Mar 22 2021 at 18:24):

Thanks.. Lemme have a look at it.

view this post on Zulip Venugopala Krishna Vemula (Mar 22 2021 at 18:44):

I did glance through: https://github.com/yurydelendik/wasmtime/tree/aot-ftw-1. Looks promising. Are you looking any timelines for this to integrate into wasmtime?

Standalone JIT-style runtime for WebAsssembly, using Cranelift - yurydelendik/wasmtime

view this post on Zulip Yury Delendik (Mar 22 2021 at 18:45):

Depends on results of our internal evaluation. At the moment there are no timelines.

view this post on Zulip Venugopala Krishna Vemula (Mar 22 2021 at 18:46):

Thanks for letting me know. Let me also explore/test further.

view this post on Zulip Pat Hickey (Mar 23 2021 at 17:06):

as part of the Lucet team efforts to merge all our useful differences into wasmtime, @Peter Huene is working on this right now as well

view this post on Zulip Peter Huene (Mar 23 2021 at 17:12):

It differs a little from Yury's work that involves ELF objects. The idea behind this work is to have a wasmtime command that will spit out a precompiled "artifact" (not an ELF so, like lucetc outputs) which can be run with the wasmtime CLI or API; the artifact in this case is pretty much identical to what we cache locally to speed up later runs today, but isn't constrained by the local architecture or CPU features (flags to the compile command will determine architecture and features). the goal is to allow for no JIT to occur at runtime (in fact, there will likely be work to conditionally remove JIT support from the runtime with a feature flag).

view this post on Zulip Yury Delendik (Apr 06 2021 at 13:17):

Extracted https://github.com/bytecodealliance/wasmtime/pull/2804 from my branch/example. It has recommended improvements for wasm2obj only. I would like some feedback.

This patch improves wasm2obj tool functionality: Use native (not only ELF) format, e.g. COFF for Windows Allows to save additional metadata (Module, as well as table of function and trampolines ta...

view this post on Zulip Alex Crichton (Apr 07 2021 at 00:42):

I started taking a look at this today but got distracted, sorry about that!

view this post on Zulip Alex Crichton (Apr 07 2021 at 00:42):

I'll try to finish up reviewing tomorrow


Last updated: Nov 22 2024 at 17:03 UTC