bytecodealliance / wasm-micro-runtime

WebAssembly Micro Runtime (WAMR)
Apache License 2.0
4.66k stars 577 forks source link

wamr dont support grain-lang now. #3568

Closed vkensou closed 1 week ago

vkensou commented 1 week ago

Hope wamr support the language: grain

Now iwasm said: "WASM module load failed: unsupported opcode 12"

the grain code:

module Hello

print("Hello, world!")

cmd:

grain compile "hello.gr"
iwasm "hello.gr.wasm"
TianlongLiang commented 1 week ago

Hi, can you upload the grain-generated wasm file? I can take a look at why this happened

TianlongLiang commented 1 week ago

Can you try adding this CMake flag(-DWAMR_BUILD_TAIL_CALL=1) when building WAMR to see if it helps?

vkensou commented 1 week ago

Can you try adding this CMake flag(-DWAMR_BUILD_TAIL_CALL=1) when building WAMR to see if it helps?

Add TAIL_CALL is ok!

hello.gr.zip