Internals: Not getting floating point correct #4936
Replies: 1 comment
-
Posted at 2015-08-24 by @gfwilliams It'll almost certainly be to do with It might be that just changing the The issue is really whether floating point arguments are passed on the same stack/registers as normal args. In ARM (and prob Xtensa) they are, but in x86 they aren't. Posted at 2015-08-26 by Kolban Am starting to examine and debug now ... I ran a trace ... and the following is interesting as it appears to clearly show the puzzle. Now going to start looking at jsnative.c:
Posted at 2015-08-26 by Kolban Well ... that was nice. This is what an ounce of expert knowledge does. Based on Gordon's suggestion, I added a new processor flag called XTENSA and changed the preprocessor to behave as he posted in his previous post and it worked first time. I'd NEVER have guessed to do that without his knowledge. Awesome Gordon!!! Thank you sir. .... setInterval() is now working. Posted at 2015-08-27 by @gfwilliams Great! To be honest PC is really the odd one out here, so I guess I should really have
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2015-08-24 by Kolban
I'm working on support for an as un-yet supported board and am making progress. During my unit testing, I am finding that something odd is happening with numbers. For example, I ran the following function:
Expecting to find that the function would be called every second. Instead, I seem to find it being called very, very fast. When I run dump(), I find the following:
which as you can see, the last parameter has been changed. Digging further, I found the function called:
and added a logging statement to print the value of "interval" when it is called. What is logged is:
I'm not sure where to go next. Apparently something is wrong in my setup. My processor is the xtensa lx106 (ESP8266) which I believe is a 32bit device. I sense I may be mixing 64bit processing and 32bit processing ... but haven't seen where yet.
Neil
Beta Was this translation helpful? Give feedback.
All reactions