Closed MCorange99 closed 3 months ago
Oh and the commands to build the C that im using:
/opt/wasi-sdk/bin/clang -c -o build/obj/main.c.o src/main.c -Isrc/include -std=c23 --target=wasm32-wasi -O3 -flto -nostdlib --sysroot=/opt/wasi-sdk/share/wasi-sysroot -fvisibility=hidden
wasm-ld -o build/keypadOS.wasm build/obj/main.c.o --no-entry --export-all --lto-O3 -z stack-size=6000000 --allow-undefined -export-dynamic
wasm2wat build/keypadOS.wasm -o build/keypadOS.wat
wasm2lua build/keypadOS.wasm build/keypadOS.lua --libmode --pureLua
nvm just discovered this is a dead project
Error:
Wasm:
C Program: