English
Language : 

CC78K4 Datasheet, PDF (323/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 11 EXTENDED FUNCTIONS
norec Function
norec
(d) Restrictions for automatic variables when -ZO option is not specified
The automatic variables that can be used are allocated to the registers remaining after allocation of
arguments, saddr2 area (_@NRARGX) for the arguments of norec functions, and saddr2 area (_@NRATXX)
for automatic variables of norec functions.
Table 11-21. Restrictions on norec Function Automatic Variables (When -ZO Is Not Specified)
Data Type
Other than pointer
Small model pointer, medium model data pointer
Medium model function pointer
Large model pointer
Restriction
Max. 22 bytes (Max. 6 bytes)Note
Max. 22 bytes (Max. 6 bytes)Note
Max. 4 variables (cannot be used)Note
Max. 6 variables (Max. 2 variable)Note
Note The figures enclosed in parentheses indicate values when -QR is not specified.
EXAMPLE
(C source)
norec int rout (int a, int b, int c);
int i, j;
void main ( ) {
int k, l, m;
i = l + rout (k, l, m) + ++k ;
}
norec int rout (int a, int b, int c)
{
int x, y;
return (x + (a<<2));
}
User’s Manual U15556EJ1V0UM
323