TI Logo
TI Arm Clang Compiler Tools User's Guide
v5.1

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. Cortex-M Security Extensions (CMSE)
    • 7. Introduction to Object Modules
    • 8. Program Loading and Running
    • 9. Archiver Description
    • 10. Linker Description
    • 11. Link Time Optimization - LTO
      • 11.1. Benefits of Using LTO - Enabling Inter-Module Optimizations
      • 11.2. LTO Development Flow
      • 11.3. Building an Application with LTO
      • 11.4. LTO Debug Aid
    • 12. Code Coverage
    • 13. Compiler Security
    • 14. Position Independent Code (PIC) and Dynamic Linking
    • 15. Name and C++ Name Demangler Utilities
    • 16. Object File Utilities
    • 17. Hex Conversion Utility Description
    • 18. Smart Function and Data Placement
  • GNU-Syntax Arm Assembly Language Reference Guide
  • Note on Linux Installations
  • Additional Material
  • Support
  • Important Notice
TI Arm Clang Compiler Tools User's Guide
  • »
  • tiarmclang Compiler User Manual »
  • 11. Link Time Optimization - LTO

11. 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 tiarmclang compiler tools, starting with version 2.1.0.LTS, enable inter-module optimization over a whole-program at link-time. This feature is commonly referred to as Link-Time Optimization or LTO.

Contents

  • 11.1. Benefits of Using LTO - Enabling Inter-Module Optimizations
    • 11.1.1. A Simple Example
    • 11.1.2. Code Size Reduction Due to Use of LTO
    • 11.1.3. Performance Improvement Due to Use of LTO
  • 11.2. LTO Development Flow
    • 11.2.1. How LTO Works
    • 11.2.2. LTO Development Flow Overview
  • 11.3. Building an Application with LTO
    • 11.3.1. Building an LTO-Enabled Application from the Command-Line Interface (CLI)
    • 11.3.2. Building an LTO-Enabled Application in a Code Composer Studio (CCS) Project
    • 11.3.3. Building an LTO-Enabled Application with an Older Version of Code Composer Studio
  • 11.4. LTO Debug Aid
    • 11.4.1. Debuggability of Applications Linked with LTO
    • 11.4.2. Generating Pre-/Post-LTO Symbol Reference Information
    • 11.4.3. Example
Previous Next

© Copyright 2026, Texas Instruments Incorporated. Last updated on Mar 09, 2026.