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

ccall #1

Open
tshort opened this issue Oct 6, 2017 · 0 comments
Open

ccall #1

tshort opened this issue Oct 6, 2017 · 0 comments

Comments

@tshort
Copy link
Owner

tshort commented Oct 6, 2017

This looks like the most challenging issue. Right now, Julia converts a ccall directly to a call to a memory address during code generation. I think this will require a change to Julia in how ccall's are emitted.

llvmcall's are handled fine. In llvmcall's, you can include calls to functions that are declared but not defined. So, it may be possible to convert a ccall to an llvmcall with a declared function and let the linking happen later. It looks like the key decision point to insert this change is here.

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