:) To be fair to it, with a few bugs fixed the all-JS compiler would be pretty usable - it's just that there turns out to be quite a lot of complexity involved in producing Thumb instructions, and I'm very conscious that it's all work that's already been done by GCC - and has been done better :)
By removing that complexity, I can focus on working out when variables are integers - which means the compiled Espruino code can suddenly get really fast.
Also it's a very long way towards compiling C code straight into a dynaimcally loadable module, which is something I'd also really like to see. When I get some time I'll try and make a script for it.
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.
:) To be fair to it, with a few bugs fixed the all-JS compiler would be pretty usable - it's just that there turns out to be quite a lot of complexity involved in producing Thumb instructions, and I'm very conscious that it's all work that's already been done by GCC - and has been done better :)
By removing that complexity, I can focus on working out when variables are integers - which means the compiled Espruino code can suddenly get really fast.
Also it's a very long way towards compiling C code straight into a dynaimcally loadable module, which is something I'd also really like to see. When I get some time I'll try and make a script for it.