Throwaway prototypes for Sausage v3. Plan and decisions: ~/research/sausage-v3/PLAN.md. Results and evidence: the spike READMEs.
11 lines
400 B
WebAssembly Text Format
11 lines
400 B
WebAssembly Text Format
;; Test the Go runtime's exact clock IDs and precision without a Go allocator.
|
|
(module
|
|
(import "wasi_snapshot_preview1" "clock_time_get"
|
|
(func $clock (param i32 i64 i32) (result i32)))
|
|
(memory (export "memory") 1)
|
|
(func (export "_start")
|
|
i32.const 0 i64.const 0 i32.const 0 call $clock
|
|
if unreachable end
|
|
i32.const 1 i64.const 0 i32.const 8 call $clock
|
|
if unreachable end))
|