On Wed, Dec 30, 2020 at 6:52 AM xie cui <
cuiw...@gmail.com> wrote:
>
> would linker do some lto work? what kind of lto work it would do?
Because Go uses explicit package imports, and because imports may not
have cycles, a lot of work that can only be done at link time for
C-like languages can be done at compile time by Go. For example, the
single biggest gain from LTO for C is inlining functions across
different object files. But the Go compiler does this at compile
time.
So let me turn the question around: what advantages would you expect
to see from using LTO in the Go linker?
Ian