Skip to main content
Renesas Electronics Europe - Knowledgebase

cpu=sh2dsp Option is chosen. Will DSP instructions be generated?

Latest Updated:09/10/2007


When "cpu=sh2dsp" or "cpu=sh3dsp" or "cpu=sh4aldsp" option is selected, will DSP instructions be generated?


If you use SHC compiler Ver.7 or less, DSP instructions can't be generated from C or C++ language.

You must describe it by assembly language, or use DSP libraries.

If you use SHC compiler Ver.8 or more, DSP instructions can be generated by describing along the DSP-C language specifications.

Moreover, when ""repeat"" option is specified, a DSP expansion repeat loop may be generated.

A DSP expansion repeat loop is valid only for the CPU that has LDRC instruction.

Suitable Products
C/C++ Compiler Package for SuperH Family