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.

How to optimize my code?



Hello,everyone!

   I am here again to ask some questions about optimizing. I used to optimize my code based on software pipelined information, I know it will show cycle.cpu.  But cycle.total is still lager.  So what I want to ask is ,how to optimize my code in order to reduce cycle.total? Is there  some information like  software pipelined information whice I can use to figure out which line of codes takes big cycles(including cpu stall cycles)?

   Thans very much.

  • For optimizing your code, I recommend you start with this wiki article.

    houzhi shan said:
    Is there  some information like  software pipelined information whice I can use to figure out which line of codes takes big cycles(including cpu stall cycles)?

    I'll move this thread to the Code Composer Studio forum, where they can address this question on profiling.

    Thanks and regards,

    -George

  • Houzhi

     

    It is uncelar to me if you have a problem with the measurement of the total clock compair with the software pipeline value in the assmebly code, or you are unhappy with the code optimization.   What is your cache setting?  where is the data and so on.

    Can you describe your system -  how many loops, what size is the data, what is the II value of the pipelines, what sizes are teh caches, and so on?

     

    Ran