karanbanthia
Junior Member level 1
Hi all,
I have the following line of code perfectly working in Microchip C30 compiler but gives an error in Microchip xc16 compiler saying
where ptempDest and ptempSource2 are pointers to fractcomplex source of data located in RAM. I am using dsPIC30F6012A.
Kindly help.
I have the following line of code perfectly working in Microchip C30 compiler but gives an error in Microchip xc16 compiler saying
"Automatic generation of DSP instructions not yet supported; use __builtin_ addab() instead"
Code:
volatile register int accuA asm("A");
accuA = __builtin_add(accuA,(*ptempDest).real+(*ptempSource2).real,0);
where ptempDest and ptempSource2 are pointers to fractcomplex source of data located in RAM. I am using dsPIC30F6012A.
Kindly help.