Skip to main content
Knowledgebase
Home
Renesas Electronics Europe - Knowledgebase

Giving variables fixed addresses (CC-RL)

Last Updated:05/10/2017

Question:

I am using the CC-RL compiler for RL78 devices. I want to fix the addresses of some items in RAM. How can I do this?

Answer:

You can make the address of a variable fixed by using #pragma address to set it.

[ Example ]

#pragma address (val01 = 0x0ffe00)
int    val01;

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