I am using HEW IDE with Renesas c/c++ compiler
Problem statement = When I call a function and pass float value as argument in it, then inside body of that called function, that float arguments value changes, it is not the same value which passed during function call
int Fun_ABC(float a);
d = Fun_ABC(55.5);
int Fun_ABC(float a)
when I enter into Fun_ABC and then I check value of "a" using "Add watch" option -> then it shows different value of "a" like 3.144 etc.
Please tell me the corresponding solution
Chapter 9.3.2 of the compiler manual explains about parameter passing to functions. In your case the float should be in register R4. But depending on the necessity in the function the compiler may shift the local variable also to other registers or the local variable will be deleted in a function if it is not being used any more. As Renu said, if you want to monitor a variable use a global variable for it.