RoyalIcing / Orb

Write WebAssembly with Elixir
https://useorb.dev
BSD 3-Clause "New" or "Revised" License
174 stars 1 forks source link

Add stack pointer with 1MiB #4

Closed RoyalIcing closed 3 months ago

RoyalIcing commented 11 months ago

Zig: https://github.com/ziglang/zig/pull/5529 Rust: https://github.com/rust-lang/rust/pull/50083

Both do stack-size=1048576

Zig produces a wasm file with:

(memory (;0;) 17)
(global (;0;) (mut i32) (i32.const 1048576))
RoyalIcing commented 3 months ago

I’ve decided this is a good lesson, but perhaps one a higher-level library like SilverOrb can use.