[Interest] Gold linker configuration in Qt 5

Sérgio Martins sergio.martins at kdab.com
Thu Jul 2 11:56:39 CEST 2020


On 2020-07-02 10:29, Ramakanth Kesireddy wrote:
> Hi,
> 
> Is it recommended to use gold linker or system linker with
> -no-use-goldlinker while configuring Qt5.6.3 and above?
> 
> As per my understanding, gold linker should provide faster linking and 
> use
> less memory than the traditional linker.
> 
> Please let me know your thoughts in this regard.

I did a quick test a while back, not sure which versions I tested, but 
FWIW:

Linking Qt5Widgets:
   gnu ld: 5 seconds
   gold: 3 seconds
   gold --threads: 1.6 seconds # Requires compilation with 
--enable-threads
   llvm ldd: 0.7 seconds # Threads enabled by default in newer llvm

ldd was the fastest


Regards,
-- 
Sérgio Martins | sergio.martins at kdab.com | Senior Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel: Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - The Qt, C++ and OpenGL Experts


More information about the Interest mailing list