跳转到主内容
Knowledgebase
Home
Renesas Electronics China - Knowledgebase

How to allocate programs to RAM?

Latest Updated:05/18/2015

Question:

I am using the CC-RL compiler for RL78 devices. How can I allocate programs to RAM?

Answer:

Use ROMization for allocating the programs in RAM.
・Use the linker’s –rom option to specify the mapping of initialized sections and destination sections.
・Specify the allocation of the above sections by using the –start option of the linker.
・Use the startup routine or some other method to copy the initial values.

For details, refer to “ROMization” in the user’s manual.

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