LTO
Link-time optimization: the compiler defers optimizations until linking to gain a whole-program view.
Instead of compiling each source file in isolation, the compiler outputs an intermediate representation (LLVM IR or GCC GIMPLE) and the linker sees the entire program at once. This enables dead-code elimination across file boundaries, cross-file inlining, and global decisions impossible at compile time. Trades link time for 10–30% performance gains on large projects. Usually enabled via -flto.