Can it compile to a dll/so?
Zireael07 opened this issue · comments
Zireael07 commented
Title.
Ben L. Titzer commented
Currently no. The Virgil compiler always produces a statically linked executable. Would your use case need linking a .so?
Zireael07 commented
Yes (it's for a preexisting game engine that can use external dll's for scripting languages support. No hurry though, as I don't expect their docs/API to be finalized in a couple months from now
Ben L. Titzer commented
I don't have the bandwidth on that atm, but off the top of my head, it would require emitting an additional section for the dynamic linker and some internal compiler work to deal with addresses that aren't fixed.