English
Language : 

CC78K0S Datasheet, PDF (402/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
(25) Pascal function
Pascal Function
CHAPTER 11 EXTENDED FUNCTIONS
_ _pascal
FUNCTION
• Generates the code that corrects the stack used for placing arguments during the function call on the called
function side, not on the side calling the function.
EFFECT
• Object code can be shortened if function calls appear in many places.
USAGE
• When a function is declared, add a _ _pascal attribute to the beginning.
RESTRICTIONS
• The pascal function does not support variable length arguments. If a variable length argument is defined, a
warning is output and the _ _pascal keyword is ignored.
• The keywords norec/_ _interrupt cannot be specified in a pascal function. If they are specified, in the case of
the norec keyword, the _ _pascal keyword is ignored and in the case of the _ _interrupt/_ _interrupt_brk/
_ _rtos_interrupt keywords, an error is output.
• If a prototype declaration is incomplete, normal operation may not be possible, so a warning message is
output when a pascal function’s physical definition or prototype declaration is missing.
• Pascal functions are not supported when the static model specification option (-SM) is specified. If -SM is
specified when using the pascal function, a warning message is output to the place where the _ _ pascal
keyword first appeared, and the _ _ pascal keyword in the input file is ignored.
EXPLANATION
• The -ZR option enables the change of all functions to the pascal function. However, if the pascal function is
used for functions that have few calls, the object code may increase.
402
User’s Manual U14872EJ1V0UM