-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is aot support host function call? #35
Comments
AOT mode supports the host function call.
|
|
Can you help to provide your wasm file and a simple go code to reproduce it? |
cmd/wasm_edge.go
cpp/wasm_edge.cpp
build wasm command
reproduceby the command directly
and then get the err:
some othersif i delete the wasm_edge.go code:
then i can get the correct response:
|
Hi @Celebraty , As your code above, this may be the AOT issue I mentioned, not the host functions. Because the error occurred in the WASM, not in host functions. From your code, I have additional suggestions in the
|
@q82419 thanks for your help, i have tried to add a response for the GetVM function, it can return the module which registered into the VM, and the new error occur :
do you have any idea how to resolve the problem |
@q82419 After more attempts, it was found that the following two errors appeared randomly first(just as the err before):
second:
|
finally,i found that this issue happens only on mac;there aren't any issue occured on linux |
What i want
just like wasmer, i declare some wasi functions in C++, and call them in C++
then, i defined them in golang, and register them to wasi module, it can run correctly
What's the problem
when i try host function in wasmedge, my register code is
then i call the calculate_score_wasi function, get the error
so, is my fault or the wasmedge hasn't support ? please help, thanks a lot
The text was updated successfully, but these errors were encountered: