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.

Fast adding operation of 32-bit variables

Hello,

I have a problem with the adding operation on C28 core (F28M35x). I use the code generation tool and when I would like to add two 32-bit fixed point variables the compiler generates this asm code:

        RPT       #31
||     SUBCUL    ACC,XAR6
        MOVL      ACC,P           
        ADDL      ACC,XAR7        
        MOVL      *-SP[2],ACC

It takes a lot of time to perform it. Is there any faster way to add two 32-bit values?

Thanks in advance,
Tamas