English
Language : 

CC78K0S Datasheet, PDF (310/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 11 EXTENDED FUNCTIONS
callt Functions
callt/_ _callt
RESTRICTIONS
• The address of each function declared with callt/_ _ callt will be allocated to the callt table when object
modules are linked. For this reason, when using the callt table in an assembler source module, the routine to
be created must be made “relocatable” using symbols.
• A check on the number of callt functions is made at linking.
• When the -ZA option is specified, _ _callt is enabled and callt is disabled.
• The area of the callt table is 40H to 7FH.
• When the callt table is used exceeding the number of permitted callt attribute functions, a compile error will
occur.
• The callt table is used by specifying the -QL option. For that reason, the number of callt attributes permitted
per load module and the total in the linking modules is as shown in Table 11-4.
• When the option for using the library that supports prologue/epilogue (-ZD option) is specified, the -QL4
option cannot be used. Also, because two callt entries are used by the library that supports prologue/epilogue
in the case of a normal model and up to ten in the case of a static model, the maximum number of callt
entries is reduced by two in the case of a normal model and by up to ten in the case of a static model.
Table 11-4. The Number of callt Attribute Functions That Can Be Used When the -QL Option Is Specified
• When QQ option is not specified simultaneously
Option
Normal model
Static model
-QL1
30
30
-QL2
27
29
-QL3
13
15
-QL4
0
12
• When QQ option is specified simultaneously
Option
Normal model
Static model
-QL1
30
30
-QL2
27
29
-QL3
18
20
-QL4
11
13
• Cases where the -QL option is not used and the defaults are as shown below.
Table 11-5. Restrictions on callt Function Usage
callt Function
Number per load module
Total number in linked module
Restriction Value
30 max.
30 max.
310
User’s Manual U14872EJ1V0UM