-Xdiv


This option generates the div and divu instructions for division.

[Specification format]

-Xdiv

 

-

Interpretation when omitted

The divq and divqu instructions are generated for division.

[Detailed description]

-

This option generates the div and divu instructions instead of the divq and divqu instructions for division.

-

Although the divq and divqu instructions are fast, the number of execution cycles will differ depending on the values of the operands.
For this reason, specify this option if it is necessary to maintain a constant number of execution cycles at all times (e.g. in order to guarantee real-time performance).

[Example of use]

-

To generate the div and divu instructions for division, describe as:

>ccrh -Xdiv -Xcommon=rh850 main.c