NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.

Updates to Hand-Tuning Loops on C6000 Application Note

From Texas Instruments Wiki
Jump to: navigation, search

Introduction[edit]

This page contains updates to the application note tidoc:spra666 Hand-Tuning Loops and Control Code on the TMS320C6000. Updates may arise as the compiler changes release to release, or new techniques are discovered. All such changes are collected in this article. Eventually, a revision of the application note may be issued.

Update to Section 5.2.7 Optimizing Conditional Expressions[edit]

Some readers have taken from this section that is always good to transform conditional expressions like:

<syntaxhighlight lang=c> if (cond1 && cond2) // note && {

  ...

} </syntaxhighlight>

to:

<syntaxhighlight lang=c> if (cond1 & cond2) // note & {

  ...

} </syntaxhighlight>

This is not the case. One reason this is not the case is that the compiler may perform this transformation for you. The likelihood of the compiler performing this transformation automatically has gone up in recent releases. However, that does not mean you will never need to apply this technique manually. It is possible that, in an important inner loop, manually changing "&&" to "&" (or "||" to "|") could cause a loop to perform much better.

All that said, do not perform this change indiscriminately. Wait until you find a loop that is performing poorly and contains "&&". Then manually change to "&" to see if it helps.

E2e.jpg {{
  1. switchcategory:MultiCore=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article Updates to Hand-Tuning Loops on C6000 Application Note here.

Keystone=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article Updates to Hand-Tuning Loops on C6000 Application Note here.

C2000=For technical support on the C2000 please post your questions on The C2000 Forum. Please post only comments about the article Updates to Hand-Tuning Loops on C6000 Application Note here. DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article Updates to Hand-Tuning Loops on C6000 Application Note here. MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article Updates to Hand-Tuning Loops on C6000 Application Note here. OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article Updates to Hand-Tuning Loops on C6000 Application Note here. OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article Updates to Hand-Tuning Loops on C6000 Application Note here. MAVRK=For technical support on MAVRK please post your questions on The MAVRK Toolbox Forum. Please post only comments about the article Updates to Hand-Tuning Loops on C6000 Application Note here. For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article Updates to Hand-Tuning Loops on C6000 Application Note here.

}}

Hyperlink blue.png Links

Amplifiers & Linear
Audio
Broadband RF/IF & Digital Radio
Clocks & Timers
Data Converters

DLP & MEMS
High-Reliability
Interface
Logic
Power Management

Processors

Switches & Multiplexers
Temperature Sensors & Control ICs
Wireless Connectivity