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.

TMS320C67xx Intrinsic files for optimization

Other Parts Discussed in Thread: TMS320C6748

Dear Sir,

I am using omap l138 lcdk, I want to optimize the code running in DSP(TMS320C6748). In CCS5.4 compiler tried all the options for optimization , required optimization level is not reached. So intrinsic file i want to use for optimization. Please help in this regards

Thanks

Vinod

  • Vinod,

    Could you please elaborate your requirement/query?

    Please post TI compiler related queries on TI Compiler forum. Thank you.
  • I am not sure what do you ask - do you ask how to optimize a specific function (without telling us what is the function) or in general how one uses intrinsic?  Or how to optimize? or why the performances are not as good as you expect it to be

    As Raja said, please elaborate and explain what you ask.

    Ran

  • Vinod,

    Please go to TI.com and search for "dsp optimization" (no quotes). You will find some DSP Optimization workshop and training materials. There is a lot that you have to understand in order to do excellent optimization of DSP algorithms.

    As suggested by the other responses, there is not a generalized answer that we can offer to help you with optimization.

    If you are trying to build a product for commercial use, you may find it best to contact one of the TI Design House companies to help you with your product development.

    If you are trying to learn how to do the optimization, spending the time to go through the training material from TI.com will be very useful time spent. You can also look at the source code for some of the DSP libraries and compare the Natural C code with the Optimized C code.

    Regards,
    RandyP
  • Hi,

    I want to run Melpe vocoder in OMAPL138 development kit. 
    OMAPl138 having DSP and ARM. Since Melpe vocoder is having DSP function, I need TMS320C67xx Intrinsic file to optimize.
    TMS320C62xx and TMS320C64xx Intrinsic file are available openly. Please share links for TMS320C67xx Intrinsic file.
    Regards
    Vinod

  • Look at Table 7-3  C6000 Intrinsic support by device of the optimized compiler User guide

     http://www.ti.com/lit/ug/spru187u/spru187u.pdf

    I assume you can close the thread

  • Vinod,

    Are you trying to compile source code that uses intrinsics and you are getting errors reported? What are those errors? Are you using the -mv6740 compiler switch? That switch should enable all C674x-compatible intrinsics.

    Or are you trying to use a vocoder library file and you are having problems with that?

    Please post the error messages you are seeing to help us understand your issue. There is no intrinsics file that is included manually, it is always automatic and is a part of the compiler within CCS.

    Regards,
    RandyP
  • Hi,

    I am not getting error. Please elaborate -mv6740 compiler switch, how to enable all C674x-compatible intrinsics.

    Regards

    vinod

  • Vinod,

    The right thing for you to do is to go to TI.com and search for "c6748 workshop" (no quotes) to find the archived workshop material for the DSP Integration Workshop. The workshop introduces you to many different features and capabilities of the processor and of the tools, including CCS and the compiler.

    It will also show you how to do basic optimization steps. You said earlier that you already tried all options for optimization, but if you are unaware of the -mv switch then it is not possible that you have run the optimization steps correctly. You may not need to use intrinsics once you use the correct compiler features.

    The -mv switch should have been set by default when you created your project, so you probably did not create your project correctly either. The workshop will help with that.

    Since your questions are about how to use CCS and the compiler, and not about the C6748 device, it will serve you best to ask your question on the CCS or TI Compiler forums, as Raja said at the beginning. They can point you to things like the CCS Getting Started Guide and helpful tutorials about how to use CCS and the compiler. From our group, we can offer the DSP workshop that I referenced above.

    Regards,
    RandyP
  • Hi,

    CCS tool with different optimization levels helped me to drastically reduce clock cycles, but still my requirement not reached. I will revisit optimization. Thanks for all support.

    regards

    Vinod