Why is JIT not enabled on devices like Espruino WiFi even if they are on the latest firmware? #5084
Replies: 1 comment
-
Posted at 2023-03-10 by @gfwilliams It was more a case of testing and demand - I'd developed on the nRF52 chips, and nobody ever asked for it to on the STM32s so I never took the time to enable it and try it out. I've just had a quick go at enabling it and it does seem to work ok at least on the quick examples I tried, so if you now install one of the latest cutting edge builds then it should work. I haven't yet enabled it for the Original Espruino as that does have a slightly different processor (an M3 vs M4) as well as not enough free flash memory without removing other features. Posted at 2023-03-10 by llakie Thank you very much. After a bit of experimenting, I'm currently trying to find out, why the following function hangs indefinitly. It's a function which scans a portion (from this.idx to this.next) of an array for a given sequence, starting at an offset using a given stepping width.
When I run it without jit it works as expected. If the function is jitted, the application hangs without any error. Thank you for your reply Posted at 2023-03-10 by llakie Ok, I found the mistake. "continue" is not supported. As I fixed that it worked after turning off any minification of the code. If I minify, it does somehow not work anymore but does not give me any hint why. I was finally able to shave off another 150ms from my computation, which is very good :) Thank you very much Gordon. Posted at 2023-03-13 by @gfwilliams Great - glad it helped! When you used break and continue, did you not get an error? For example if I do:
It says:
Posted at 2023-03-22 by llakie I was just the fact, that I enabled minification, which led to the fact, that no errors were shown at all. Once I turned it off, the error you mentioned appeared :) Posted at 2023-03-22 by @fanoush If the "continue" was there, the error should still show even if minified. However I don't know how in code from post #3 the continue could be optimized away, which type of minification you had enabled? Posted at 2023-03-22 by @fanoush the esprima offline minifier makes it into
so there is comma operator and when uploading from IDE I see
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2023-03-10 by llakie
I saw, that only Bluetooth enabled devices are supported. Could you explain why this is? I really would like to use this feature to speed up some computational work on the Microcontroller.
I'm currently on version 2.17 and I'm using an Espruino WiFi.
Thank you :)
Beta Was this translation helpful? Give feedback.
All reactions