Conceptual
Login

Link-Time Optimization

LTO defers optimization until link time, when the compiler sees every translation unit at once, enabling cross-module inlining and whole-program dead-code removal that per-file compilation cannot do. For Wasm targets it routinely cuts both size and runtime, at the price of slower builds.

This Concept is waiting for its first lesson!

LTO defers optimization until link time, when the compiler sees every translation unit at once, enabling cross-module inlining and whole-program dead-code removal that per-file compilation cannot do. For Wasm targets it routinely cuts both size and runtime, at the price of slower builds.

Are you a teacher? Sign in to start contributing.

Sign In