You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am currently creating a wasi runtime as a side project, I have already Implemented most of the instructions and started implementing part of the wasi interface after reading online in multiple places I found two defenitions for the fd_write call,
1:
The first one implies I return a tagged union of the number of bytes written or the error, the second one (the one implemented by wasmtime and probably the correct one) Expects to receive a "pointer" to the amount of bytes written and returns and error if it failed, I only found the "correct" version in the wasix docs which isn't directly related to this project from what I saw.
So my question is, Where can I find the actual docs for the calling conventions of wasm syscalls that I need to implement as a runtime?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I am currently creating a wasi runtime as a side project, I have already Implemented most of the instructions and started implementing part of the wasi interface after reading online in multiple places I found two defenitions for the fd_write call,
1:
2:
https://wasix.org/docs/api-reference/wasi/fd_write
The first one implies I return a tagged union of the number of bytes written or the error, the second one (the one implemented by wasmtime and probably the correct one) Expects to receive a "pointer" to the amount of bytes written and returns and error if it failed, I only found the "correct" version in the wasix docs which isn't directly related to this project from what I saw.
So my question is, Where can I find the actual docs for the calling conventions of wasm syscalls that I need to implement as a runtime?
Beta Was this translation helpful? Give feedback.
All reactions