-use_mda


This option specifies whether to use the arithmetic unit.

[Specification format]

-use_mda={not_use|mda}
  not_use: Generates a code that does not use the division/multiplication and multiply-accumulate unit.
  mda: Generates a code that uses the division/multiplication and multiply-accumulate unit.

 

-

Interpretation when omitted

When the -cpu=S1 or -cpu=S3 option is specified, the code is the same as when the -use_mda=not_use option is specified.

When the -cpu=S2 option is specified, the code is the same as when the -use_mda=mda option is specified.

[Detailed description]

-

This option specifies whether to use the arithmetic unit.

-

This option only specifies the instruction set and architecture and does not specify whether the division/multiplication and multiply-accumulate unit is implemented.

-

The following shows the ccrl operation when both this option and the -cpu option are specified.

 

-use_mda=

not_use

mda

-cpu=

S1

Can be specified together

Compile error

S2

Can be specified together

Can be specified together

S3

Can be specified together

Compile error

[Example of use]

-

To generate a code that uses the division/multiplication and multiply-accumulate unit, describe as:

>ccrl -use_mda=mda -cpu=S2 -dev=dr5f100pj.dvf main.c