You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/build_wamr.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -327,6 +327,10 @@ And the wasm app can calls below APIs to allocate/free memory from/to the shared
327
327
- **WAMR_BUILD_SHRUNK_MEMORY**=1/0, default to enable if not set
328
328
> Note: When enabled, this feature will reduce memory usage by decreasing the size of the linear memory, particularly when the `memory.grow` opcode is not used and memory usage is somewhat predictable.
329
329
330
+
## **Instruction metering**
331
+
- **WAMR_BUILD_INSTRUCTION_METERING**=1/0, default to disable if not set
332
+
> Note: Enabling this feature allows limiting the number of instructions a wasm module instance can execute. Use the `wasm_runtime_set_instruction_count_limit(...)` API before calling `wasm_runtime_call_*(...)` APIs to enforce this limit.
333
+
330
334
## **Combination of configurations:**
331
335
332
336
We can combine the configurations. For example, if we want to disable interpreter, enable AOT and WASI, we can run command:
0 commit comments