Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> The addressable memory space doesn't include code, globals, stack, etc

Really? In that case, how does a language like Rust, where stack allocation is used regularly, compile to WASM?



GP is referring to the call stack. It is still possible to use the WASM heap as a stack, by maintaining a stack pointer and a base pointer.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: