Skip to main content

WasmEdge_ConfigureSetRunMode

Function WasmEdge_ConfigureSetRunMode 

Source
pub unsafe extern "C" fn WasmEdge_ConfigureSetRunMode(
    Cxt: *mut WasmEdge_ConfigureContext,
    Mode: WasmEdge_RunMode,
)
Expand description

Set the run mode for module execution.

Selects the engine used to execute a WebAssembly module: interpreter (default), JIT, or AOT. Only WasmEdge_RunMode_AOT will load AOT custom sections from universal WASM, or dlopen shared-library WASM artifacts; in the other modes, AOT data is ignored, and shared-library inputs are re-loaded as plain WASM after extracting their embedded bytes.

This function is thread-safe.

\param Cxt the WasmEdge_ConfigureContext to set the run mode. \param Mode the WasmEdge_RunMode value.