Hi, I'm trying to compile for embeded devices using stdlib (not including the -nostdlib flag during clang compilation) and memory heap grows in 64K slices, would it be possible to reduce that? Is it required to patch llvm compiler? Thanks
This topic was moved here from #general > 64K memory slices by Borja Tellado.
The page size on wasm is 64k. There is a wasm proposal to allow using smaller page sizes though: https://github.com/WebAssembly/custom-page-sizes I think WAMR doesn't support it yet though.
https://github.com/WebAssembly/custom-page-sizes/blob/main/proposals/custom-page-sizes/Overview.md#implementation-status has a list of wasm engines that do support it.
By the way you may want to post in #wamr instead. Maybe a mod can move your existing messages there?
This topic was moved here from #general > WAMR 64K memory slices by David Bryant.
Last updated: Apr 13 2025 at 00:37 UTC