Stream: git-wasmtime

Topic: wasmtime / issue #8500 Support for IoT devices


view this post on Zulip Wasmtime GitHub notifications bot (Apr 29 2024 at 10:44):

TAOFOR4 opened issue #8500:

Hi,

I am wondering if wasmtime supports IoT devices like Raspberry Pico, ESP32 C6, or something similar? Thank you!

view this post on Zulip Wasmtime GitHub notifications bot (Apr 29 2024 at 11:08):

bjorn3 commented on issue #8500:

The biggest problem is likely going to be architecture support. Cranelift and by extension Wasmtime currently doesn't support any 32bit target. Only x86_64, arm64, riscv64 and s390x are currently supported.

If you have a microcontroller with a supported architecture however, since https://github.com/bytecodealliance/wasmtime/pull/7995 it should be possible to run without an OS assuming you implement the functions of wasmtime-platform.h. The min-platform example takes almost 7MB as it includes not just the WASM runtime, but also the compiler. If you push a wasm module precompiled for the target to the microcontroller instead you can enable just the runtime part of Wasmtime, which cuts down the size to a little over 700k.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 29 2024 at 11:32):

TAOFOR4 closed issue #8500:

Hi,

I am wondering if wasmtime supports IoT devices like Raspberry Pico, ESP32 C6, or something similar? Thank you!


Last updated: Dec 23 2024 at 12:05 UTC