4 ms·
Does Golang support dynamic linking? I think a Hello world binary in Go is about the same size? I know I'm sort of comparing apples with oranges here.
by georgerobinson 11y ago
Does Golang support dynamic linking? I think a Hello world binary in Go is about the same size? I know I'm sort of comparing apples with oranges here.
- swetland 11y agoGo hello world is larger, but it's static and includes the native Go libc equivalents instead of depending on glibc. $ size hello text data bss dec hex filename 1329045 25256 102376 1456677 163a25 hello That's a stripped Go 1.4.2 hello world (1941480 bytes unstripped).
- not_with_retard 11y agoYes, you can dynamically link by compiling Go with gccgo (https://golang.org/doc/install/gccgo https://golang.org/doc/install/gccgo).
- frik 11y agoHow? do you have tutorial/info about it? (The link above doesn't explain how.)