Stream: wamr

Topic: blog: Understand the WAMR heap


view this post on Zulip Wang Xin (Mar 17 2023 at 14:33):

https://bytecodealliance.github.io/wamr.dev/blog/understand-the-wamr-heap/

Linear memory # The linear memory is a contiguous, mutable array of raw bytes. For most compilers, e.g. wasi-sdk, emsdk, rustc or asc, normally it includes three parts, data area, auxiliary stack area and heap area. For wasi-sdk, the initial/max size can be specified with -Wl,–initial-memory=n1,–max-memory=n2 For emsdk, the initial/max size can be specified with -s INITIAL_MEMORY=n1 -s MAXIMUM_MEMORY=n2 -s ALLOW_MEMORY_GROWTH=1 or -s TOTAL_MEMORY=n For asc, they can be specified with –initialMemory and –maximumMemory flags

Last updated: Dec 23 2024 at 13:07 UTC