All books

Professional

Apps About Coach Log in Start reading

Quantitative Finance · Glossary

What is Link-time optimisation?

Definition 8.5 Low-Latency Software · Chapter 8 — C++ for Latency III: The Compiler

In link-time optimisation (LTO) the compiler stores its intermediate representation in the object files and optimises the whole program again when linking, as if all translation units were one: functions can be inlined across files.

Profile-guided optimisation builds twice around a training run, whose workload decides what the compiler optimises for; link-time optimisation defers the optimisation of the whole program to the link.
Figure 8.2. Profile-guided optimisation builds twice around a training run, whose workload decides what the compiler optimises for; link-time optimisation defers the optimisation of the whole program to the link.
Read in context →