Link Time Optimization
Discussions focus on link-time optimization (LTO), linkers such as lld, mold, and GCC, including enabling options, performance impacts, and build process configurations.
Activity Over Time
Top Contributors
Keywords
Sample Comments
Yeah, isn't this just link-time optimization?
Link time optimization is possible with GCC.
Yep, it's possible to enable link time optimizations.
What linker are you using? I've gotten really significant speedup over the default linker by using lld or mold.
I assume it could be or is part of link time optimization when compiling an application rather than a library?
It's trivial if you compile from source and onow how to massage the linker!
In the end it's the compiler which is being called by the linker to perform LTO, 99% of the time will be spent there
No good reason. It would just require something fiddly with the linker / build process. This is good enough.
Link time inlining would solve this.
Anyone know the state of link time optimisation on this? Last time I checked it was advised to use this for dev builds only