메인 콘텐츠로 건너뛰기
Knowledgebase
Home
Renesas Korea

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
  • 이 기사가 도움이 되셨나요?