Skip to main content
Visitor II
October 2, 2009
Question

Cosmic

  • October 2, 2009
  • 3 replies
  • 655 views
Posted on October 02, 2009 at 06:41

Cosmic

    This topic has been closed for replies.

    3 replies

    Visitor II
    May 17, 2011
    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?

    Visitor II
    May 17, 2011
    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)

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 15:04

    Hi _luca,

    It pretended me the problem to be dissolve.

    Regards

    krzysztof.skoczek