spike: validate WASM phase 0
This commit is contained in:
@@ -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"
|
||||
Reference in New Issue
Block a user