Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Error for automatic generation of DSP instruction

Status
Not open for further replies.

karanbanthia

Junior Member level 1
Joined
Jan 7, 2010
Messages
16
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Location
pune
Activity points
1,412
Hi all,
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.
 

The error message suggests to use another __builtin_xx call instead of the "+" operator, which isn't supported for this data type.
 

__builtin_add() works perfectly as per the code that i have posted in the old microchip c30 compiler but not in xc16 compiler.
xc16 compiler instead suggests to use __builtin_addab() which is not suitable for my code. What other option do I have?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top