webassembly-lua icon indicating copy to clipboard operation
webassembly-lua copied to clipboard

Support for wasi ?

Open coco875 opened this issue 1 year ago • 0 comments

I use wamr to run wasm not in a navigator and I get this:

#00: 0x0000 - setTempRet0
#01: 0x0131 - saveSetjmp
#02: 0x00ed - $f98
#03: 0x0448 - $f220
#04: 0x0012 - $f304
#05: 0x0094 - fib


#00: 0x0000 - setTempRet0
#01: 0x0131 - saveSetjmp
#02: 0x00ed - $f98
#03: 0x0448 - $f220
#04: 0x0012 - $f304
#05: 0x0094 - fib

Exception: failed to call unlinked import function (env, setTempRet0)

with this simple lua program:

function fib(n)
    if n <= 1 then
        return n
    end
    return fib(n - 1) + fib(n - 2)
end

coco875 avatar Sep 19 '24 13:09 coco875