Just a quick update on this - I'm not convinced this is the way forward.
It's hard work, and extremely difficult to debug and test. After all that, while it'll be a lot faster than normal Espruino code it's not going to be speed or size optimised without a lot of work.
I'm experimenting with something different - running a service on Espruino.com that will take the JavaScript code, translate it to C++, run it through GCC, and send back the result.
It's a lot simpler, and it should result in much faster code. Hopefully there will be some updates soon.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Just a quick update on this - I'm not convinced this is the way forward.
It's hard work, and extremely difficult to debug and test. After all that, while it'll be a lot faster than normal Espruino code it's not going to be speed or size optimised without a lot of work.
I'm experimenting with something different - running a service on Espruino.com that will take the JavaScript code, translate it to C++, run it through GCC, and send back the result.
It's a lot simpler, and it should result in much faster code. Hopefully there will be some updates soon.