4 ms·
Ive never found linking to take more than 5 seconds with the standard linker which, but lld exists and its super fast in my experience. But i guess its only nee
by ef004 7y ago
Ive never found linking to take more than 5 seconds with the standard linker which, but lld exists and its super fast in my experience. But i guess its only needed whon working on huge c++ like firefox or sth. like that.
https://lld.llvm.org/ https://lld.llvm.org/
- barrkel 7y agoLinking is isomorphic to tracing, moving GC. Effectively, the linker relocates objects in memory and writes a freeze-dried "heap" for the OS loader (another linker) to page in later. Linker slowness ~= GC pause. The cost is approximately proportional to the size of the traced graph.