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 (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 functions (Double-precision)) |
When -Xfloat=fpu is specified (for backward compatibility with V1.01.00 or earlier) |
|
(Mathematical functions (Single-precision)) |
||
(Mathematical functions (Double-precision)) |
When -Xfloat=soft is specified (for backward compatibility with V1.01.00 or earlier) |
|
(Mathematical functions (Single-precision)) |
Functions with variable arguments Character conversion functions Character classification functions Peripheral device initialization function |
||
(Mathematical functions (Double-precision)) |
||
(Mathematical functions (Single-precision)) |
||
(Mathematical functions (Double-precision)) |
||
(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.
When CS+ is used, these libraries are referred by default.
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.
secure\libmalloc.lib will generate an error if the Professional Edition license is not available.
When linking libmalloc.lib, the standard library (rh***.lib) has to be linked at the same time.
When the library (libc.lib) for achieving compatibility with earlier versions is used, the library for the security facility cannot be used.