跳至主要內容
Knowledgebase
Home
Renesas Electronics Taiwan - Knowledgebase

Specifying the allocation of a runtime library function (CC-RL)

Last Updated:05/10/2017

Question:

I am using the CC-RL compiler for RL78 devices. Can I specify the allocation of a runtime library function?

Answer:

Yes. To specify the allocation, you need to change the section name within the module.

You can change the name of the section for the linker of CC-RL by changing it within the library file. Copy the lib file for the runtime library, and use the -REName option of the linker to change the section name for the file.

When specifying a library file changed in this way for a project, the module in the lib file of the runtime library with the changed section name is linked.

(Example)
Use the command prompt of the linker to change the section name for the module _COM_imul, which is in the runtime library file rl78cm4r.lib, from .RLIB to .RLIBxxx.

""C:\Program Files\Renesas Electronics\CS+\CC\CC-RL\V1.02.00\bin\rlink.exe"" -form=library -library=rl78cm4r.lib -rename=_COM_imul(.RLIB=.RLIBxxx)

Suitable Products
e² studio
CS+ (formerly CubeSuite+)
C Compiler Package for RL78 Family