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.

[C2000][ASM] Compiler run time option : --c2xlp_src_compatible, what exactly does this do??

Hi,

The compiler guide describes this option as 

--c2xlp_src_compatible : Accepts C2xLP assembly instructions and encodes them as equivalent C28x instructions.

What exactly does that mean?

I have mixed in some c2xlp code in my c28 assembly using the following wrapper (an example)

    .lp_amode
    SETC      AMODE                              ; C2xLP addressing mode to allow *+XAR6[AR1%++]`

    MOVL      *+XAR6[AR1%++], XAR2               ; Store x(0), advance AR1 to point to x(N-1)
    MOVZ      AR3, AR1                           ;
    RPT       AR0                                ; Repeat order + 1 times
 || MACF32    R7H, R3H, *+XAR6[AR1%++], *XAR7++  ; R3H = R3H + R2H | R2H = x(N-k-1) * h(k) odd cycles
                                                 ; R7H = R7H + R6H | R6H = x(N-k-1) * h(k) even cycles
    .c28_amode
    CLRC      AMODE                              ; Back to C28x addressing mode

Now this code works fine without using the --c2xlp_src_compatible option, what would this option do to c2xlp code such as what i have shown above?