-
Notifications
You must be signed in to change notification settings - Fork 951
Shared object / DLL support #254
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
Comments
Yes, this is certainly possible. It's just that no one has asked for it yet. Line 105 in 5569cd1
|
This would be a great addition. Looking forward to this implementation :) |
Is adding this really all that needs to be done? Seems like there would be more to do... |
It's likely some more plumbing needs to be done but that's the essence of it I think. |
I'm using go with c-shared for building a small plugin .so, that basically only calls a rest API. So it mainly uses the http client and json parser. Because of the runtime, it's quite big. I think it would be very useful to compile this with tinygo instead. |
We have an existing C-codebase running bare-metal on 32-bit ARM and would like to make use of the |
It's almost 2023, how is going to support generate .dll or .lib |
I am also interested in this feature. I am using a go .dll / .lib, called from C++; and the DLL is |
The Go |
Is there a simple way to do this manually at the moment? For example, compile to e.g. |
Not easily, you'd have to manually initialize the runtime, run package initializers, pass Maybe I'll add support for this at some point since there seems to be demand for this feature. |
gc compiler has -buildmode=c-shared.
With LLVM, this should be possible, no?
The text was updated successfully, but these errors were encountered: