4 ms·
no C backend unfortunately
by danielEM 5y ago
no C backend unfortunately
- sitkack 5y agoAnything that can target Wasm can target C. https://webassembly.github.io/wabt/doc/wasm2c.1.html https://webassembly.github.io/wabt/doc/wasm2c.1.html
- danielEM 5y agoI thought of that solution, but the problem is that when you have 8bit microcontroller and all your operations from webassembly are translated to 32 bit operations then you gonna end up doing 8 bit math on 32 bit emulated math operations aligned back to 8 bit. :(
- sitkack 5y agoYou should see how it works in practice. Not try to discount your goals, but chasing 8 bits is anachronistic, an ESP32-C3 is a single core 160Mhz risc-v chip with 400KB of on chip ram for $1 qty 1. Rust can target AVR directly, https://www.avr-rust.com/ https://www.avr-rust.com/ Wasm runtimes also available for embedded platforms, https://github.com/wasm3/wasm3 https://github.com/wasm3/wasm3
- marcthe12 5y agounder development actually. The language devs are planing to use the c backend for bootstraping the self compling zig compiler which is in works
- danielEM 5y agoI think it was me asking for it like a year ago onzig github issuees :)