cancel
Showing results for 
Search instead for 
Did you mean: 

Cosmic

krzysztof239955_st
Associate II
Posted on October 02, 2009 at 06:41

Cosmic

3 REPLIES 3
krzysztof239955_st
Associate II
Posted on May 17, 2011 at 15:04

Hi,

I use ST Visual Develop with Cosmic compiler. If I declare the local variable (in main.c), the returned value never correct, if it is declared as global variable, the returned value is correct, why?

luca239955_st
Associate III
Posted on May 17, 2011 at 15:04

if you don't *see* the value you expect in a local variable is probably just an optimization. If the value is actually not correct (for example in a subsequent use of the local variable) than it is another issue.

Please post an example to clarify.

Regards,

Luca (Cosmic)

krzysztof239955_st
Associate II
Posted on May 17, 2011 at 15:04

Hi _luca,

It pretended me the problem to be dissolve.

Regards

krzysztof.skoczek