English
Language : 

CC78K4 Datasheet, PDF (320/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 11 EXTENDED FUNCTIONS
norec Function
norec
Table 11-18. Registers Used for norec Function Arguments: Receiving Side (Without -ZO)
Data Type
char (with 4-byte arguments)Note 1
char (without 4-byte arguments)Note 1
int, short, enum
(without 4-byte arguments)Note 1
(with 4-byte arguments)Note 1
long/float/double/long double
Small model pointer
Medium model data pointer
Large model pointer
First Argument
R10
R6
UP
RP3
VP (higher16 bits)
RP3 (lower 16 bits)
UP
VVP
Second Argument
R11
R7
RP3
UP
saddr2Note 2
VP
saddr2Note 2
Third Argument or Later
R6, R7, R8, R9, saddr2Note 2
R10, R11, R8, R9, saddr2Note 2
VP, saddr2Note 2
VP, saddr2Note 2
saddr2Note 2
RP3, saddr2Note 2
saddr2Note 2
Notes 1
2
4-byte arguments are arguments of long, float, double and long double type
When the -QR option is specified, these arguments can be passed via _@NRARGX (saddr2). The
medium model’s function pointer (3 bytes) cannot be used as an argument assigned to the register.
Cautions 1. The medium model function pointers cannot be used as arguments to be allocated to
registers.
2. The order of allocating registers of this function is the same as that of an ordinary function
with the -QF option specified.
EFFECT
• The object code can be shortened and program execution speed can be improved.
USAGE
Declare a function with the norec attribute in the function declaration as follows.
norec type-name function-name
• _ _ leaf can also be described instead of norec.
320
User’s Manual U15556EJ1V0UM