News:

PROTON pic BASIC Compilers for PIC, PIC24, dsPIC33

Main Menu

dsPIC DSP instruction set used in compiler?

Started by trastikata, Dec 14, 2023, 11:57 AM

Previous topic - Next topic

trastikata

Hello Les,

I was wondering if the compiler takes advantage of the DSP instruction set when compiling for dsPIC's?

top204

No. The DSP instructions are very specific to certain tasks and are not used in general routines. The compiler does use the barrel shift and hardware divide and multiply available in the PIC24 and dsPIC devices, but for DSP, it is better to create procedures for a specific task when using a dsPIC33 device, because they are not in PIC24 devices.



SeanG_65

Probably better to use assembly language for anything needing ot use these functions