mirror of
https://github.com/containers/youki
synced 2026-11-30 13:36:23 +01:00
9 lines
403 B
WebAssembly Text Format
9 lines
403 B
WebAssembly Text Format
(module
|
|
(import "wasi_snapshot_preview1" "fd_write" (func $fd_write (param i32 i32 i32 i32) (result i32)))
|
|
(memory (export "memory") 1)
|
|
(data (i32.const 8) "Hello from WebAssembly on youki!\n")
|
|
(func (export "_start")
|
|
(i32.store (i32.const 0) (i32.const 8))
|
|
(i32.store (i32.const 4) (i32.const 33))
|
|
(drop (call $fd_write (i32.const 1) (i32.const 0) (i32.const 1) (i32.const 100)))))
|