• This is super exciting. The Espruino has always been a hybrid of native code and JS, but this makes the native code side much more accessible, and gives us a way to address the cases where speed actually limits us on the Espruino.

    Where does it put the compiled code? It looks like... just after the end of the stack. Isn't that where the last JSVars go? It sounds like you'd need to also reduce the number of jsvars by ceil((ASM_BASE+/16) when the compiled code is uploaded, otherwise, if it uses the last jsvar, it'll trash the compiled code. Also raises the question of how to save() these, though that might not be hard if they're stored in the same area as jsvars.

About

Avatar for DrAzzy @DrAzzy started