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

Is the addresses of sections can be found in C language source code?

Latest Updated:05/18/2015

Question:

I am using the CC-RL compiler for RL78 devices. Is there any way to check the addresses where sections start and end from C language source code?

Answer:

Use the section address operator, __sectop、__secend.


Example:

__far unsigned char *start_adr = __sectop(".textf");
Suitable Products
e² studio
CS+ (formerly CubeSuite+)
C Compiler Package for RL78 Family