English
Language : 

RH850F1L Datasheet, PDF (11/16 Pages) Renesas Technology Corp – Emulator
RH850/F1L Series E1/E20 Emulator Release Note(Restrictions when using CubeSuite+)
No. 23 Regarding debug information relation(display of information on variables)
[Description]
If two or more variables defined in a function have the same name, the values of variables that can be viewed
when the program has stopped may differ from expected values.
Whether this phenomenon arises depends on the optimization level* selected during the process of compilation.
*The optimization level can be set via [Build Tool] - [Common Options] - [Frequently Used Options (Link)].
[Example]
In the example below, char-type variable "a" exists in the innermost scope at (*1) and int-type
variable "a" exists in the innermost scope at (*2).
Under some conditions, however, only the value of one of the variables can be viewed from (*1) or
(*2).
void main()
{
int a = 100;
{
char a = 'A';
a++;
}
a++;
}
<-(*1)
<-(*2)
• Display of (*1) in the [Watch] panel
"a"
'A' (0x41) "signed char" "0xfefb1004" // Expected value
or "a" 100 (0x00000064) "int"
"0xfefb1000"
• Display of (*2) in the [Watch] panel
"a"
'B' (0x42) "signed char" "0xfefb1004"
or "a" 100 (0x00000064) "int"
"0xfefb1000" // Expected value
Condition:
Optimization was performed at the time of compilation.
[Resolution]
Select [Optimize for Debugging] as the optimization level before compilation.
R20UT2743EJ0200 Rev.2.00
Mar 20, 2014
Page 11 of 13