The CC-RL provides the following libraries.
Table 7.1 | Supplied Libraries |
|
|
|
Standard library
[V1.03 or later]
(except for calloc, free, malloc, and realloc)
|
rl78nm4s.lib
|
For an 8-bit or 16-bit CPU without extended instructions and arithmetic units
|
rl78cm4s.lib
|
For a 16-bit CPU using division/multiplication and multiply-accumulate units
|
rl78em4s.lib
rl78em8s.lib
|
For a 16-bit CPU using division/multiplication extended instructions
|
[V1.03 or later]
Standard library
(calloc, free, malloc, realloc)
|
malloc_n.lib
|
malloc library for normal usage
|
malloc_s.lib
|
malloc library for security facility
[Professional Edition only]
|
Runtime library
|
rl78nm4r.lib
|
For an 8-bit or 16-bit CPU without extended instructions and arithmetic units
|
rl78cm4r.lib
|
For a 16-bit CPU using division/multiplication and multiply-accumulate units
|
rl78em4r.lib
rl78em8r.lib
|
For a 16-bit CPU using division/multiplication extended instructions
|
Startup routine
|
cstart.asm
|
Startup routine
|
In order to pass the far pointer to a standard library function that has a variable pointer as a parameter, the user has to call the function for the far variable pointer whose function name starts with "_COM_". Note that when the -far_rom option is specified, the function macros of the header file are valid and the function for the far variable pointer is automatically called.