Announcement

Collapse
No announcement yet.

Mold 1.0 Released As A Modern High-Speed Linker Alternative To GNU Gold, LLVM LLD

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #31
    Originally posted by NobodyXu View Post
    llvm has lld, and it is where LTO happens.
    gcc has no lld, so lto can't depend on lld. you are confusing llvms's variant of lto with lto

    Comment


    • #32
      Originally posted by Mark625 View Post
      If your linker output goes straight to /usr/bin or /usr/lib, you have bigger problems to worry about.
      i allow you to run executables from build directory. and if you don't do that, then check for open failure and fallback to rename isn't needed
      Last edited by pal666; 23 December 2021, 07:53 AM.

      Comment


      • #33
        Originally posted by pal666 View Post
        gcc has no lld, so lto can't depend on lld. you are confusing llvms's variant of lto with lto
        Gcc is similar that it requires Gold linker according to https://gcc.gnu.org/wiki/LinkTimeOptimization


        To use this feature, you must be using gold as the linker and enable the use of the plugin by compiling with gcc -fuse-linker-plugin. This will shift the responsibility of driving the final stages of compilation from collect2 to gold via the linker plugin.
        And lld being gold compatible, support loading gold ld’s linker plugins.
        Last edited by NobodyXu; 25 December 2021, 07:30 PM.

        Comment


        • #34
          Originally posted by NobodyXu View Post
          Gcc is similar that it requires Gold compiler according to https://gcc.gnu.org/wiki/LinkTimeOptimization
          gcc doesn't require gold and gold is not a compiler
          Originally posted by NobodyXu View Post
          And lld being gold compatible, support loading gold ld’s linker plugins.
          now go back and carefully read description of this "feature" which you conveniently skipped

          Comment

          Working...
          X