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

Implement the dynamic dispatch loop in JuvixAsm #2555

Closed
lukaszcz opened this issue Dec 10, 2023 · 0 comments · Fixed by #2556
Closed

Implement the dynamic dispatch loop in JuvixAsm #2555

lukaszcz opened this issue Dec 10, 2023 · 0 comments · Fixed by #2556
Assignees
Milestone

Comments

@lukaszcz
Copy link
Collaborator

  • Reimplement runtime/src/juvix/funcall/apply.h and DECL_CALL_CLOSURES from runtime/src/juvix/funcall/funcall.h in JuvixAsm, so that the dispatch loop can be used with different backends without implementing it separately for each (a manual implementation tailored to each backend can still be faster and may be done later).
  • Implement a transformation on JuvixAsm which replaces the ccall and tccall instructions with invocations of the dispatch loop implemented in JuvixAsm.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant