2 ms·
Could you link to a resource that describes Go's dependency resolution scheme? Specifically, I'm curious if this means that all libraries are dynamically linked
by kibwen 15y ago
Could you link to a resource that describes Go's dependency resolution scheme? Specifically, I'm curious if this means that all libraries are dynamically linked, and if so, if this inhibits Go's ability to inline function calls between libraries.
- luriel 15y agoGo libraries are statically linked and inlining works across libraries.
- vetinari 15y agoDynamically linked libraries are actually a little problem in Go. Library is opened via dlopen()/LoadLibrary() and symbols needed are looked up by the Go code, not by system dynamic linker.
- 4ad 15y agoThat's not true at all. In the few cases where dynamic linking is involved, it works just as you'd expect it to be.
- vetinari 15y agoGo does not use native dynamic linker. Please check package syscall, specifically src/pkg/syscall/dll_windows.go. You will see for yourself, how it is implemented.