7.2 Rule for Naming Libraries

When the standard library is used in an application, include the related header files to use the library function.

The runtime library function is a routine that is automatically called by the CC-RL when a floating-point operation or integer operation is performed.

Refer these libraries using the optimizing linker option (-library). The type of library files used in a single project must be unified.

 

The rule for naming libraries is given below.

[V1.03 or later]

Since malloc library functions used for normal usage have different facilities from those used for the security facility, they become different libraries from the other standard libraries. The malloc libraries are common for RL78-S1, RL78-S2, and RL78-S3.

rl78<muldiv><memory_model><float><standard/runtime>.lib

malloc_<secure>.lib (malloc library) [V1.03 or later]

 

<muldiv>

n : Without extended instructions and arithmetic units (for RL78-S1 core/RL78-S2 core)

c : Using division/multiplication and multiply-accumulate units (for RL78-S2 core)

e : Using division/multiplication extended instructions (for RL78-S3 core)

<memory_model>

m : Small model or medium model

<float>

4 : Single-precision floating-point number

8 : Double-precision floating-point number (supported only in devices with division/multiplication extended instructions)

<standard/runtime>

s : Standard library

r : Runtime library

<secure>

n: For normal usage

s: For security facility [Professional Edition only]