User’s Manual U15556EJ1V0UM
13
CHAPTER 10 LIBRARY FUNCTIONS............................................................................................158
10.1 Interface Between Functions.............................................................................................159
10.1.1
Arguments............................................................................................................................. 159
10.1.2
Return values........................................................................................................................ 160
10.1.3
Saving registers to be used by individual libraries ................................................................ 160
(1)
When -ZR option is not specified ................................................................................. 160
(2)
When -ZR option is specified ....................................................................................... 162
10.2 Headers................................................................................................................................163
(1)
ctype.h........................................................................................................................................ 163
(2)
setjmp.h...................................................................................................................................... 163
(3)
stdarg.h ...................................................................................................................................... 163
(4)
stdio.h......................................................................................................................................... 164
(5)
stdlib.h........................................................................................................................................ 164
(6)
string.h........................................................................................................................................ 165
(7)
error.h......................................................................................................................................... 165
(8)
errno.h........................................................................................................................................ 165
(9)
limits.h ........................................................................................................................................ 165
(10) stddef.h....................................................................................................................................... 166
(11) math.h ........................................................................................................................................ 166
(12) float.h.......................................................................................................................................... 167
(13) assert.h....................................................................................................................................... 169
10.3 Re-entrantability..................................................................................................................169
(1)
Functions that cannot be re-entranced....................................................................................... 169
(2)
Functions that use the area secured in the startup routine........................................................ 169
(3)
Functions that deal with floating-point numbers......................................................................... 169
10.4 Standard Library Functions...............................................................................................170
10.5 Batch Files for Update of Startup Routine and Library Functions ................................279
10.5.1
Using batch files.................................................................................................................... 280
CHAPTER 11 EXTENDED FUNCTIONS.........................................................................................283
11.1 Macro Names.......................................................................................................................284
11.2 Keywords.............................................................................................................................284
(1)
Functions.................................................................................................................................... 285
(2)
Variables .................................................................................................................................... 286
11.3 Memory ................................................................................................................................287
(1)
Memory model............................................................................................................................ 287
(2)
Register bank ............................................................................................................................. 287
(3)
Location function........................................................................................................................ 287
(4)
Memory space............................................................................................................................ 288
11.4 #pragma directives .............................................................................................................289
11.5 How to Use Extended Functions.......................................................................................291
(1)
callt functions.............................................................................................................................. 292
(2)
Register variables....................................................................................................................... 295
(3)
How to use the saddr area ......................................................................................................... 301
(4)
How to use the sfr area .............................................................................................................. 309
(5)
noauto function........................................................................................................................... 312
(6)
norec function............................................................................................................................. 318
(7)
bit type variables ........................................................................................................................ 326