From Jason Turner
Watch on YouTube

Summary

This episode examines Link Time Optimization (LTO), also known as Inter-Procedural Optimization (IPO), and its significant performance benefits. Jason demonstrates how traditional compilation limits optimization across translation units, and how enabling LTO allows the compiler to optimize across these boundaries. Using a simple example with multiple source files, he shows how LTO can reduce a sequence of function calls across different files to a direct return of the computed value in optimized builds.

Resources

Tags