TI Logo
C29x Clang Compiler Tools User's Guide
v2.2

Contents

  • Getting Started Guide
  • Migration Guide
  • Compiler Tools User Manual
    • 1. Using the C/C++ Compiler
    • 2. C/C++ Language Implementation
    • 3. Run-Time Environment
    • 4. Using Run-Time-Support Functions and Building Libraries
    • 5. Processing Assembly Source Code
    • 6. Introduction to Object Modules
    • 7. Program Loading and Running
    • 8. Archiver Description
    • 9. Linker Description
    • 10. Link Time Optimization - LTO
      • 10.1. Benefits of Using LTO - Enabling Inter-Module Optimizations
      • 10.2. LTO Development Flow
      • 10.3. Building an Application with LTO
      • 10.4. LTO Debug Aid
    • 11. Code Coverage
    • 12. Compiler Security
    • 13. C29x Security Model
    • 14. Name and C++ Name Demangler Utilities
    • 15. Object File Utilities
  • GNU-Syntax C29 Assembly Language Reference Guide
  • Note on Linux Installations
  • Additional Material
  • Support
  • Version History
  • Important Notice
C29x Clang Compiler Tools User's Guide
  • »
  • c29clang Compiler User Manual »
  • 10. Link Time Optimization - LTO

10. Link Time Optimization - LTOΒΆ

In the world of embedded systems, getting the maximum performance out of an application can be challenging, particularly when the available system memory is limited. A robust and effective C/C++ optimizing compiler can be an invaluable resource in helping achieve higher-level performance for embedded applications that must run within a limited memory space, especially if that compiler is able to perform inter-module optimizations on whole-programs.

The c29clang compiler tools, starting with version 2.0.0.STS, enable inter-module optimization over a whole-program at link-time. This feature is commonly referred to as Link-Time Optimization or LTO.

Contents

  • 10.1. Benefits of Using LTO - Enabling Inter-Module Optimizations
    • 10.1.1. A Simple Example
    • 10.1.2. Code Size Reduction Due to Use of LTO
    • 10.1.3. Performance Improvement Due to Use of LTO
  • 10.2. LTO Development Flow
    • 10.2.1. How LTO Works
    • 10.2.2. LTO Development Flow Overview
  • 10.3. Building an Application with LTO
    • 10.3.1. Building an LTO-Enabled Application from the Command-Line Interface (CLI)
    • 10.3.2. Building an LTO-Enabled Application in a Code Composer Studio (CCS) Project
  • 10.4. LTO Debug Aid
    • 10.4.1. Debuggability of Applications Linked with LTO
    • 10.4.2. Generating Pre-/Post-LTO Symbol Reference Information
    • 10.4.3. Example
Previous Next

© Copyright 2026, Texas Instruments Incorporated. Last updated on Jul 21, 2026.