• Yes, if you look at what happens it actually converts the function into E.nativeCall, which takes a simple string which contains the binary data.

    Also, have you seen http://www.espruino.com/Assembler ?

    You could even point it at a position in flash that contains your code. The trick is setting up the compiler so it compiles to either position independent code, or a specific address - and then you might also need to try and link in Espruino's built-in functions.

    Basically it's actually more hassle to do than just compiling an extra file into Espruino itself. Perhaps if we could get GCC running in JavaScript in the Web IDE then it might make sense, but at the moment I don't think it does.

About

Avatar for Gordon @Gordon started