logoalt Hacker News

Suracyesterday at 8:50 AM5 repliesview on HN

I can see no difference to an ordinary linker. Anyone care to explain it to me.?


Replies

jespinoyesterday at 12:46 PM

Yes, it is not specially different from other linkers. It has some tasks building the final binary including special sections in the binary, and is more aware about the specifics of the go language. But there is nothing that is extremely different from other linkers. The whole point of the series is to explain a real compiler, but in general, most of the parts of the go compiler are very widely used in other languages, like ssa, ast, escape analysis, inlining...

show 1 reply
gregwebsyesterday at 12:12 PM

The difference is that Go has its own linker rather than using a system linker. Another article could explain the benefits of tighter integration and the drawbacks of this approach. Having its own toolchain I assume is part of what enables the easy cross compilation of Go.

show 1 reply
jenoeryesterday at 8:55 AM

What is there to explain? The author did not claim there is a difference in the article.

pjmlpyesterday at 10:01 AM

Why should it be one?

cloudheadyesterday at 9:22 AM

The title is misleading

show 1 reply