On Wed, Dec 30, 2020 at 6:52 AM xie cui <[email protected]> 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

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAOyqgcW6koYPUO0F6NVrJe0Luv%2B7A1V9wPDbTpFUaBzZYGaJww%40mail.gmail.com.

Reply via email to