diff --git a/core/config.h b/core/config.h index e9a765903..7cb8ce7ed 100644 --- a/core/config.h +++ b/core/config.h @@ -570,9 +570,10 @@ #define WASM_ENABLE_QUICK_AOT_ENTRY 1 #endif -/* Support aot intrinsic functions which can be called from aot code - when `--disable-llvm-intrinsics` flag is used by wamrc to generate - the aot file */ +/* Support AOT intrinsic functions which can be called from the AOT code + when `--disable-llvm-intrinsics` flag or + `--enable-builtin-intrinsics=` is used by wamrc to + generate the AOT file */ #ifndef WASM_ENABLE_AOT_INTRINSICS #define WASM_ENABLE_AOT_INTRINSICS 1 #endif diff --git a/doc/build_wamr.md b/doc/build_wamr.md index a9ffca204..0d372e0d7 100644 --- a/doc/build_wamr.md +++ b/doc/build_wamr.md @@ -264,6 +264,10 @@ Currently we only profile the memory consumption of module, module_instance and - **WAMR_BUILD_QUICK_AOT_ENTRY**=1/0, enable registering quick call entries to speedup the aot/jit func call process, default to enable if not set > Note: See [Refine callings to AOT/JIT functions from host native](./perf_tune.md#83-refine-callings-to-aotjit-functions-from-host-native) for more details. +#### **Enable AOT intrinsics** +- **WAMR_BUILD_AOT_INTRINSICS**=1/0, enable the AOT intrinsic functions, default to enable if not set. These functions can be called from the AOT code when `--disable-llvm-intrinsics` flag or `--enable-builtin-intrinsics=` flag is used by wamrc to generate the AOT file. +> Note: See [Tuning the XIP intrinsic functions](./xip.md#tuning-the-xip-intrinsic-functions) for more details. + #### **Configurale memory access boundary check** - **WAMR_CONFIGUABLE_BOUNDS_CHECKS**=1/0, default to disable if not set > Note: If it is enabled, allow to run `iwasm --disable-bounds-checks` to disable the memory access boundary checks for interpreter mode.