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.

TMS320F280039C: Bitwise operation in generated CLA instructions by the compiler

Part Number: TMS320F280039C


Tool/software:

Hi champs,

I am asking this for our customer.

The user finds the same bit-field C code for bitwise manipulation, CLA usually use more instructions than CPU when -O2 is used for both CPU and CLA.

Questions:

1. Is there any better and efficient way for the user to generate efficient CLA instruction codes for bitwise operations except for manual assembly?

2. Do you suggest using -O3 and/or higher?

Wayne

  • For the source file where this occurs ...

    the same bit-field C code for bitwise manipulation, CLA usually use more instructions than CPU when -O2 is used for both CPU and CLA

    ... please follow the directions in the article How to Submit a Compiler Test Case.  Without that test case, I can only guess at answers to these questions.

    1. Is there any better and efficient way for the user to generate efficient CLA instruction codes for bitwise operations except for manual assembly?

    I don't think so.  I doubt manual assembly would be much better.  

    2. Do you suggest using -O3 and/or higher?

    It is easy to try.  I suspect there would be some improvement, but not a lot.

    Thanks and regards,

    -George