spike: validate WASM phase 0

This commit is contained in:
udo
2026-06-12 11:40:26 +00:00
parent 7066da3cde
commit 7e2faf1472
10 changed files with 1148 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash
# Phase 0: build the minimal loader against the WAMR build at /opt/wamr.
# Runs on k-uce.
set -e
cd "$(dirname "$0")"
# Runtime: Wasmtime C API. (WAMR was evaluated first per WASM-PROPOSAL §9 but
# its wasm-c-api ignores imported memories/tables — see FINDINGS.md.)
WASMTIME=/opt/wasmtime
OUT=/tmp/uce/wasm-phase0
clang++ -std=c++17 -O1 -g loader.cpp -o "$OUT/loader" \
-I"$WASMTIME/include" \
-L"$WASMTIME/lib" -lwasmtime -Wl,-rpath,"$WASMTIME/lib" \
-lpthread -lm -ldl
echo built: "$OUT/loader"