This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Optimize a C Code

Hello, 

I'm writing a C code with Code Composer Studio for DSP in TM6320C613! The project's target is to filter an audio signal using a IIR filter. My code scores 2 billion of CK! I can't use EDMA coprocessor. How can I optimize my code? 

Thank you!

  • Pasqualina,

    Why can't you use the EDMA?

    Have you looked through our workshop material? Go to TI.com and search for "c6713 workshop" (no quotes) and look for a workshop on our Wiki that covers the C6713 DSK or C6416T DSK. It will tell you many things you need to understand about the processor and the tools and how to optimize your code, and maybe how to use the EDMA.

    It may also help you figure out the right way to measure the clock cycles. 2 Billion sounds a bit high for any common measurement of valid benchmarks, even of very unoptimized code.

    Regards,
    RandyP
  • First of alla thank you for aswering me back! I can't use EDMA because I can't configure it because I have no deep background with C language!
    So I want to tell you how I count my CK. After debugging my code, I enable the CK counter (with CCS v5) and run! My audio trace lasts 30 sec!
    Is it rigth? Have I add some breakpoint?
    Thank you!
  • Pasqualina,

    You definitely will benefit from going through the workshop that I mentioned above. That workshop is based on CCS 3.3, but the material on the processor will be needed before you can move forward as quickly as you want to. You can then search for the C6000 Integration Workshop that is based on the newer C6748 processor, but will show you how to use the newer version of CCS.

    We offer these workshop materials online for free to get you up to speed on the devices and tools. You will find success by following those workshops and using the example labs they offer. You will be glad you did this.

    Regards,
    RandyP