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

How: Identify variable address in C language get symbol list as output

Latest Updated:05/18/2015

Question:

I am using the CC-RL compiler for RL78 devices. How do I identify the address of a global variable in the C language? Also, can I get a list of all symbols and addresses as output?

Answer:

Designate the linker’s –show=symbol option. The symbol information will be output in the linkage list file, and you can find the values which belong to each of the symbols (addresses of variables).
Suitable Products
e² studio
CS+ (formerly CubeSuite+)
C Compiler Package for RL78 Family