Expand description

An engine drives the compilation and the runtime.

Entry points: A default engine is created with wasm_engine_new and freed with wasm_engine_delete.

Example

The simplest way to get a default engine is the following:

int main() {
    // Create the engine.
    wasm_engine_t* engine = wasm_engine_new();

    // Check we have a valid engine!
    assert(engine);

    // Free everything.
    wasm_engine_delete(engine);

    return 0;
}

To configure the engine, see the wasm_config_new.

Re-exports

Structs

  • A configuration holds the compiler and the engine used by the store.
  • An engine is used by the store to drive the compilation and the execution of a WebAssembly module.

Enums

Functions