gcc force not to use DSP

Viewed 94

Is it possible to force a tricore-gcc (which has mostly the same flags as gcc) compiler to not use special instructions?

I want to measure the run time of code on a microcontroller which has DSP capabilities.

uint32_t c[100],b[100],a[100];
for(int i=0; i<100; i++){
    c[i] += a[i]*b[i];
}

for example is translated to a special MAC instruction which uses the DSP and will return the result faster than the ALU would calculate it.

I now want to test how much faster it is, not by manually counting cycles given in the manual (because of stalls etc..). Is it somehow possible to tell the compiler not to use the DSP, or more specifically not to use one special assembly instruction?

Thanks

0 Answers
Related