English
Language : 

CC78K0S Datasheet, PDF (320/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 11 EXTENDED FUNCTIONS
Usage of saddr Area
-RS
(3) Usage with saddr automatic allocation option of internal static variables
FUNCTION
• Automatically allocates internal static variables (except const type) to saddr area regardless of whether or
sreg declaration is made or not.
• Depending on the value of n, the internal static variables to be allocated can be specified as follows.
Table 11-9. Variables Allocated to saddr Area by -RS Option
Value of n
1
2
4
When omitted
Variables Allocated to saddr Area
Variables of char and unsigned char types
Variables for when n = 1, plus variables of short, unsigned short, int, unsigned int,
enum, and pointer type
Variables if n is 2 and variables of long, unsigned long, float, double, and long
double type
All variables (including the structures, unions, and arrays in this case only)
• Variables declared with the keyword sreg are allocated to the saddr area regardless of the above
specification.
• The variables allocated to the saddr area by this option are handled in the same manner as sreg variables.
The functions and restrictions for these variables are as described in (1).
METHOD OF SPECIFICATION
Specify the -RS [n] (n: 1, 2, or 4) option.
Remark In the -RS [n] option, modules specifying a different n value can be linked to each other.
320
User’s Manual U14872EJ1V0UM