6 ms·
You say "separate compilation", but what you are really asking is whether Go supports forward-compatible shared libraries. Go does separate compilation, it's a
by 4ad 5y ago
You say "separate compilation", but what you are really asking is whether Go supports forward-compatible shared libraries.
Go does separate compilation, it's an extremely important property for Go.
Go code can be built as a shared library, loadable by both C or Go code, albeit this is an unusual use case for Go.
However, when multiple Go shared objects are to be linked together, they must share the same Go version, including the toolchain version, so there is no forward compatibility.