This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Is it a bug or a feature? double and static double

Recently, I have seen a very strange behaviour on uvision4.

When I use a local double variable in my function, it compiles but I see NOP on disassamble window which corresponds to my variable.What is more, double operations which I implement in function has meaningless assemble code as well. However when I change my local variable to static double, it compiles and generates assemble code for my variable and also for my double operations as well.

So I thought that could be limitation for evaluation software, and compile the same code on a licensed computer. Guess what, It generates working code.Everything is OK. So I was wondering if this is a limitation for evaluation software which claims only limitation is 32K code size?

Regards,
Deha