English
Language : 

CC78K0S Datasheet, PDF (343/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 11 EXTENDED FUNCTIONS
Interrupt Functions
#pragma vect
#pragma interrupt
Table 11-12. Save/Restore Area When Interrupt Function Is Used
Save/Restore Area
Register used
All registers
saddr area for runtime library used
saddr area for all runtime libraries
saddr area for register variable used
All saddr area for arguments/auto
variables of norec function
√: Saved
× : Not saved
NO BANK
×
×
×
×
×
×
Function Called
Without -QR
With -QR
×
×
√
√
×
×
√
√
×
√
×
√
Function Not Called
Without -QR
With -QR
√
√
×
×
√
√
×
×
×
√
×
×
(Static model)
• Since the saddr area for register variables, the saddr area for automatic variables or norec function
arguments, and the saddr area for the runtime library is not used when the -SM option is specified during
compilation, only the save and restore code for registers is output; not the code for saddr area. However,
when leafwork 1 to 16 has been specified, the code for saving and restoring the byte number to the stack is
output from the higher-level address of shared area at the beginning and end of the interrupt function (Refer
to 11.5 (23) Static model when the -ZM option is not specified, and 11.5 (32) Static model expansion
specification when the -ZM option is specified).
Caution If there is an ASM statement in an interrupt function, and if the area reserved for registers of
the compiler is used in that ASM statement, the area must be saved by the user.
User’s Manual U14872EJ1V0UM
343