Generating Cortex-M4 DSP instructions

Asked by STG

Does gcc generate any of the DSP instructions available in the Cortex-M4?
I am having trouble writing C code that translates to any of these instructions, perhaps I am simply missing a compiler flag?
Is there a list of supported instructions anywhere (in the source code)?

Question information

Language:
English Edit question
Status:
Solved
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Solved by:
Joey Ye
Solved:
Last query:
Last reply:
Revision history for this message
Best Joey Ye (jinyun-ye) said :
#1

They are simply not supported by GCC so far. My suggestion would be to use CMSIS, which wrap all DSP instructions with macros.

Joey

Revision history for this message
STG (senseitg) said :
#2

Thanks Joey Ye, that solved my question.