The CC-RH provides the following libraries.
Functions with variable arguments Character conversion functions Character classification functions Peripheral device initialization function RAM section initialization function Checks for indirect function calls function) (Mathematical functions (Double-precision and single-precision)) |
When -Xfloat=fpu, -Xdbl_size=8, and -Xround=nearest are specified |
|
When -Xfloat=soft, -Xdbl_size=8, and -Xround=nearest are specified |
||
When -Xfloat=fpu, -Xdbl_size=4, and -Xround=nearest are specified |
||
When -Xfloat=soft, -Xdbl_size=4, and -Xround=nearest are specified |
||
When -Xfloat=fpu, -Xdbl_size=8, and -Xround=zero are specified |
||
When -Xfloat=fpu, -Xdbl_size=4, and -Xround=zero are specified |
||
Functions with variable arguments Character conversion functions Character classification functions Peripheral device initialization function |
Can always be used (for backward compatibility with V1.01.00 or earlier) |
|
Mathematical library using FPU (Mathematical functions (Double-precision)) |
When -Xfloat=fpu is specified (for backward compatibility with V1.01.00 or earlier) |
|
Mathematical library using FPU (Mathematical functions (Single-precision)) |
||
Mathematical library not using FPU (Mathematical functions (Double-precision)) |
When -Xfloat=soft is specified (for backward compatibility with V1.01.00 or earlier) |
|
Mathematical library not using FPU (Mathematical functions (Single-precision)) |
Functions with variable arguments Character conversion functions Character classification functions Peripheral device initialization function |
||
Mathematical library using FPU (Mathematical functions (Double-precision)) |
||
Mathematical library using FPU (Mathematical functions (Single-precision)) |
||
Mathematical library not using FPU (Mathematical functions (Double-precision)) |
||
Mathematical library not using FPU (Mathematical functions (Single-precision)) |
||
When the standard library or mathematical library is used in an application, include the related header files to use the library function. |
Refer these libraries using the optimizing linker option (-l).
However, it is not necessary to refer the libraries if only "program diagnosis function", "function with a variable arguments", "character conversion functions" and "character classification functions" are used.
The operation runtime function is a routine that is automatically called by the CC-RH when a floating-point operation or integer operation is performed. |
Unlike the other library functions, the "operation runtime function" is not described in the C source or assembler source.
Each rh***.lib library includes the contents of libc.lib, libm.lib, and libmf.lib (but does not include libmalloc.lib, libsetjmp.lib). When specifying an rh***.lib library, do not specify libc.lib, libm.lib, or libmf.lib together. In addition, only one of the rh***.lib libraries should be specified. Otherwise, correct operation is not guaranteed. |