xodio / xod

XOD IDE
https://xod.io
GNU Affero General Public License v3.0
895 stars 119 forks source link

Different result, simulation vs debug #1946

Closed Cesar-S closed 4 years ago

Cesar-S commented 4 years ago

Maybe it's a problem, now I have an alternative solution but I leave the restlessness.

https://forum.xod.io/t/different-result-simulation-vs-debug/3384

nkrkv commented 4 years ago

Hello and thank you for pointing to the problem with a bug issue. I understand the reason behind the confusion but I see no way to fix it. To be more precise: effort amount to fix it does not match the potential gain.

atoi is the standard C++ function and it operates on int type by default. int is two bytes on AVR and four bytes on simulation and 32-bit Cortex-M microcontrollers. In the case reported, it’s up to the author to choose a function other than atoi to guarantee the same behavior across all platforms. Hope this makes sense.

For now, I’m closing the issue. Feel free to re-open if new circumstances appear.

Cesar-S commented 4 years ago

I understand, as long as it is not something that affects the simulation in general it makes no sense to devote more effort.