TI Logo
TI C7000 C/C++ Optimization Guide
v4.1
  • 1. Introduction
  • 2. C7000 DSP CPU Architecture
  • 3. Profiling Code
  • 4. Basic Code Optimization Strategies and Techniques
  • 5. Understanding Compiler Optimization
    • 5.1. Software Pipelining
    • 5.2. If Statements and Nested If Statements
    • 5.3. Vectorization and Vector Predication
    • 5.4. Automatic Inlining
    • 5.5. Loop Collapsing and Loop Coalescing
  • 6. Advanced Code Optimization Techniques
  • 7. Examples
  • 8. Support
  • 9. Revision History
  • 10. Important Notice
TI C7000 C/C++ Optimization Guide
  • »
  • 5. Understanding Compiler Optimization

5. Understanding Compiler OptimizationΒΆ

Before you can interpret the assembly code and the software pipelining information within, it helps to understand some of what the compiler is trying to do with the C/C++ source code as it compiles source code into assembly code.

Contents:

  • 5.1. Software Pipelining
    • 5.1.1. Software Pipelining Motivation
    • 5.1.2. Software Pipelining Overview and Terminology
    • 5.1.3. Software Pipelining: Performance and Code-Size Tradeoff
    • 5.1.4. Software Pipelining Example
    • 5.1.5. Software Pipeline Information Comment Block
    • 5.1.6. Software Pipeline Processing Steps
  • 5.2. If Statements and Nested If Statements
    • 5.2.1. If-conversion Pseudo-Code Example
    • 5.2.2. If-conversion Source Code Example
    • 5.2.3. Benefits of if-conversion
    • 5.2.4. Which if-statements are if-converted
  • 5.3. Vectorization and Vector Predication
    • 5.3.1. Vectorization and Code Size
  • 5.4. Automatic Inlining
    • 5.4.1. Automatic Inlining and Code Size
  • 5.5. Loop Collapsing and Loop Coalescing
Previous Next

© Copyright 2024, Texas Instruments Incorporated. Last updated on Sep 25, 2024.