Cosmic
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2009-10-01 09:41 PM
Posted on October 02, 2009 at 06:41
Cosmic
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 06:04 AM
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?Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 06:04 AM
Posted on May 17, 2011 at 15:04if 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)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 06:04 AM
Posted on May 17, 2011 at 15:04
Hi _luca,
It pretended me the problem to be dissolve. Regards krzysztof.skoczek