WAMR#

The module enables integration with WebAssembly Micro Runtime for executing WASM code, adding a number of runtime-specific directives to the wasm_modules context.

In our repositories, the module is built dynamically and is available as a separate package named angie-module-wamr.

Configuration Example#

wasm_modules {

    wamr_heap_size 16k;

    wamr_stack_size 16k;

    load fft_transform.wasm id=fft;
}

Directives#

wamr_heap_size#

Syntax

wamr_heap_size size;

Default

wamr_heap_size 8k;

Context

wasm_modules

Sets the heap size for an individual module instance.

wamr_global_heap_size#

Syntax

wamr_global_heap_size size;

Default

wamr_global_heap_size 1m;

Context

wasm_modules

Sets the heap size for the entire WAMR runtime.

wamr_stack_size#

Syntax

wamr_stack_size size;

Default

wamr_stack_size 8k;

Context

wasm_modules

Sets the stack size for an individual module instance.