> In fact, it does not seem to work very well.
Hi Go Kudo,
I read about the LTO feature from GCC in the past, and in my opinion,
LTO works have many years of improvement in the GCC, it works pretty
good nowadays. But programmers of Open Source projects were really
clever the last twenty years. I read about bench tests where larger
projects changes from normal compiling to -lto in GCC and after large
benchmarking, they do not have much performance benefits from LTO. They
said in these reports that mostly the bottleneck which -lto solves, were
not existing in these projects: Developers for example move critical
codes in the past from the .c-files into the .h-headers, so GCC can
inline them without having such a feature like -lto. Or there use parts
of "single-file" approaches for projects in C which have same compiling
results as with the feature -lto.
So, I think LTO works fine now, but you need projects which have these
kind of bottlenecks to benefit from LTO. :)
Best regards,
Thomas
ps:
Sorry, for two e-mails, Go, I was not able to press the right answer
button in my email program. ^^
Am 12.03.2022 19:17 schrieb Go Kudo: