Everything

-save_acc


< Compile Options / Microcontroller Options >

[Format]

-save_acc

 

-

[Default]

When this option is omitted, it does not generate the saved and restored code of the accumulator (ACC,ACC0,ACC1) for interrupt functions.

[Description]

-

This option generates the saved and restored code of the accumulator (ACC,ACC0,ACC1) for interrupt functions.

-

The code for saving and restoring the ACC is generated when RXv1 is selected for ISA*1 or the microcomputer type is selected by the CPU*2.

-

The code for saving and restoring ACC0 and ACC1 is generated when a value other than RXv1 is selected for ISA*1.

Note

*1) This means a selection by the -isa option or the ISA_RX environment variable.

*2) This means a selection by the -cpu option or the CPU_RX environment variable.

[Remarks]

-

The generated code for saving and restoring is the same code generated when interrupt specification "acc" is selected in #pragma interrupt. For the actual code for saving and restoring, refer to the description of #pragma interrupt in section 4.2.3 #pragma Directive.

-

Since the value of the accumulator is retained even at interrupt occurrence if this option has been specified, a code using DSP instructions, such as the MACW instruction, may be generated for C/C++ arithmetic expressions.