-fint_register


< Compile Options / Microcontroller Options >

[Format]

-fint_register = {0 | 1 | 2 | 3 | 4 }

 

-

[Default]

The default for this option is fint_register=0.

[Description]

-

This option specifies the general registers which are to be used only in fast interrupt functions (functions that have the fast interrupt setting (fint) in their interrupt specification defined by #pragma interrupt). The specified registers cannot be used in functions other than the fast interrupt functions. Since the general registers specified by this option can be used without being saved or restored in fast interrupt functions, the execution speed of fast interrupt functions will most likely be improved. Then again, since the number of usable general registers in other functions is reduced, the efficiency of register allocation in the entire program is degraded.

-

The options correspond to the registers as shown in the following table.

Table 2.9

Correspondences between Options and Registers

Option

Registers for Fast Interrupts Only

fint_register=0

None

fint_register=1

R13

fint_register=2

R12, R13

fint_register=3

R11, R12, R13

fint_register=4

R10, R11, R12, R13

 

[Remarks]

-

Correct operation is not guaranteed when a register specified by this option is used in a function other than the fast interrupt functions. If a register specified by this option has been specified by the base option, an error will occur.