-
Notifications
You must be signed in to change notification settings - Fork 10
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
Documentation on new syntax #13
Comments
Thank you for your interest. As you can see, this is a WIP project. So FFI is not fully supported yet. However, technically, you can achieve it as follows. (1) Create a project via (2)
(3) Run
... and we now have an LLVM IR in
We can use this ordinary LLVM IR to achieve FFI. (4) Create
(5) Run (6) Execute
... Yes, tedious. The beloved flavor of a WIP project. I'll add For the time being, you might be able to get rough idea of the new syntax via the (embarrassingly sketchy) files in I hope you enjoy. |
Thanks! |
The generated LLVM is not quite right. I think it works only based on platform ABI. The signature is not right: LLVM IR generated by
test.zig
|
Good catch, thanks. I think I need to add a way to specify the signature of an external function. I'll add it to my todo list. |
Hello, thanking for making this. I have no idea how to use this language though. How do I do FFI (e.g. call C functions)?
The text was updated successfully, but these errors were encountered: