Dear Team,
Currently I am facing problem with compiling and linking assembly code on CCS 4.3.9, So request you to provide the solution asap.
Problem: I have implemented and integrated the FIR filter with order 128 in C but it is taking much time for processing, hence i am planning to use assembly.
I downloaded the code for TI's Medical Development Kit for C5515 and tried to integrate the filter code with my code but it is giving compilation and linking errors.
Following code snippet and error is given for reference.
/* Initilizing output as zero */
asm(" *AR2 = #0");
/* Loop count */
asm(" T0 = #161");
asm(" AC0 = #0");
/* Loop starts */
asm("LOOP? ");
asm(" T0 -= #1");
asm(" AC0 += ((*AR0-) * (*AR1+))");
asm(" if (T0 != #0) goto LOOP?");
/* Loop ends */
asm(" nop");
asm(" nop");
asm(" (*AR2+) = HI(AC0) ");
asm(" *AR2 = AC0 ");
Error Displayed by CCS :
[E9999] Illegal directive or mnemonic.
[E9999] Invalid mnemonic specified.
[E9999] Synatax Error.
To avoid the problem i also tried the following
Go to CCS – build options – compiler settings --- Runtime model options --- select assembly source language
and tried both algebraic & mnemonic.
But still it is showing errors for other piece of code (which was compiling fine earlier without above settings).
So I want to know whether the code provided above is correct or not? And if it is correct then how to successfully build the project and execute it?