4 ms·
LTO without Os/z will increase your binary size, since more things get inlined
by hackcasual 3y ago
LTO without Os/z will increase your binary size, since more things get inlined
- einpoklum 3y agoWhy would most things get inlined when you're optimizing for size rather than speed?
- hackcasual 3y agoif you don't optimize for size, more things get inlined. LTO creates more inlining opportunities, so plain LTO will increase your binary size. A complicating factor is small functions often inline smaller than leaving them outlined, since you no longer need call and return infrastructure.