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. Introduction to Object Modules
    • 6. Program Loading and Running
    • 7. Archiver Description
    • 8. Linker Description
    • 9. Link Time Optimization - LTO
      • 9.1. Benefits of Using LTO - Enabling Inter-Module Optimizations
      • 9.2. LTO Development Flow
      • 9.3. Building an Application with LTO
      • 9.4. LTO Debug Aid
    • 10. Code Coverage
    • 11. Compiler Security
    • 12. C29x Security Model
    • 13. Name and C++ Name Demangler Utilities
    • 14. Object File Utilities
  • Note on Linux Installations
  • Additional Material
  • Support
  • Version History
  • Important Notice
C29x Clang Compiler Tools User's Guide
  • »
  • c29clang Compiler User Manual »
  • 9. Link Time Optimization - LTO

9. 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

  • 9.1. Benefits of Using LTO - Enabling Inter-Module Optimizations
    • 9.1.1. A Simple Example
    • 9.1.2. Code Size Reduction Due to Use of LTO
    • 9.1.3. Performance Improvement Due to Use of LTO
  • 9.2. LTO Development Flow
    • 9.2.1. How LTO Works
    • 9.2.2. LTO Development Flow Overview
  • 9.3. Building an Application with LTO
    • 9.3.1. Building an LTO-Enabled Application from the Command-Line Interface (CLI)
    • 9.3.2. Building an LTO-Enabled Application in a Code Composer Studio (CCS) Project
  • 9.4. LTO Debug Aid
    • 9.4.1. Debuggability of Applications Linked with LTO
    • 9.4.2. Generating Pre-/Post-LTO Symbol Reference Information
    • 9.4.3. Example
Previous Next

© Copyright 2026, Texas Instruments Incorporated. Last updated on Feb 26, 2026.