Skip to content
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

pass all OCaml args via Wasm params if possible #43

Open
gerdstolpmann opened this issue Mar 23, 2023 · 0 comments
Open

pass all OCaml args via Wasm params if possible #43

gerdstolpmann opened this issue Mar 23, 2023 · 0 comments

Comments

@gerdstolpmann
Copy link
Collaborator

This is only advantageous when a function is called directly, and when tail calls are available.

We need to generate two wasm functions:

  • one that complies to the usual conventions where the args are passed on the stack
  • one that expects all args in Wasm params

The former function would do grab and restart, and call the other function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant