wrtd

wrtd#

wrtd#

WebAssembly Runtime Daemon (wrtd)

A daemon process that coordinates WebAssembly module execution and provides system services.

This daemon provides:

  • Loading and execution of WebAssembly modules

  • System service availability for WebAssembly components

  • Resource management and isolation

  • Runtime lifecycle management

Usage

wrtd <wasm-file> [--call <function>] [--fuel <amount>] [--stats]

The daemon will load the specified WebAssembly module and execute it, providing any necessary system services and managing its lifecycle.

The --fuel option limits execution to the specified amount of computational resources. This enables bounded execution and prevents infinite loops or excessive resource consumption. If execution runs out of fuel, it will be paused and can be resumed with a higher fuel limit.

The --stats option enables execution statistics reporting, displaying information such as:

  • Number of instructions executed

  • Amount of fuel consumed (when using the --fuel option)

  • Memory usage (current and peak)

  • Number of function calls and memory operations