English
Language : 

CC78K0S Datasheet, PDF (465/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 11 EXTENDED FUNCTIONS
11.7.6 Pascal function call interface
The difference between this function interface and other function interfaces is that the correction of stacks used for
loading of arguments when a function is called is done on the function side that was called, rather than the function
caller side. All other points are the same as the function attributes specified at the same time.
[Area to which arguments are allocated]
[Sequence in which arguments are allocated]
[Area to which automatic variables are allocated]
[Sequence in which automatic variables are allocated]
• If the noauto attribute is specified at the same time, the features are the same as when a noauto function is
called (refer to 11.7.3 noauto function call interface).
• If the noauto attribute is not specified at the same time, the features are the same when an ordinary function is
called (refer to 11.7.2 Ordinary function call interface).
EXAMPLE 1
(C source)
_ _pascal void func0 (register int, int) ;
void main ()
{
func0 (0x1234, 0x5678) ;
}
_ _pascal void func0 (register int p1, int p2)
{
register int r ;
int a ;
r = p2 ;
a = p1 ;
}
User’s Manual U14872EJ1V0UM
465