Skip to main content
Knowledgebase
Home
Renesas India - Knowledgebase

Link directive files for CC-RL

Last Updated:05/10/2017

Question:

I have started using the CC-RL compiler for RL78 devices. I had been using link directive files with CA78K0R. How do I specify sections when using CC-RL?

Answer:

Rather than stating it in a file, as was the case with CA78K0R, use the -STARt option of the linker to specify the allocation of sections by CC-RL. An example of arguments for the option is given below.
.const,.text,.data,.sdata,.textf,.constf/02000,.dataR,.bss,.stack_bss/FEF00,.sdataR,.sbss/FFE20
Suitable Products
e² studio
CS+ (formerly CubeSuite+)
C Compiler Package for RL78 Family