Stream: wamr

Topic: Questions regarding memory allocation strategies


view this post on Zulip Antoine Lavandier (Jan 08 2026 at 13:30):

Hi,
I'm trying to use WAMR on top of some rust OS using the wamr-rust-sdk crate. This is only for testing/benchmarking pupose so I'm not worried about doing a proper port.
Anyway, after tinkering around I was able to compile to run on an NRF52840DK (Thumbv7 arch) and I have had errors regarding allocations. After tracking the source of my error, I realized that this is because I stubbed os_mmap from the platform_api_vmcore.h. I'm surprised by this being an issue for two reasons:

This leads me to the following questions :

The exact allocation path is related to the linear memory of the instance i'm trying to build. I'm using WAMR 2.3.1, the version used by the wamr-rust-sdk

Thanks in advance


Last updated: Jan 09 2026 at 13:15 UTC