Inline assembler

Posted on
  • Hi there,

    MicroPhyton does it.. would it be a nightmare to implement? sounds like a good idea for performance critical sections.

  • I've been considering it. I'm working on quite a big change that'll allow you to use references to built-in functions (solving one of the biggest issues Espruino has right now). With a small utility function you'll then be able to create a JS function that calls an arbitrary address.

    All that's left after that is to use the STM32F1Flash library to write your assember into flash, and then you can execute whatever you want.

    I'm still unconvinced by how many people will use it - I think the potential overlap of JS and ASM coders is quite small :)

    Anyway, that would solve a lot of problems. I'm not planning on making a JavaScript ARM assembler/disassembler though, so if anyone fancies that as a fun project, knock yourself out ;)

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Inline assembler

Posted by Avatar for Loop @Loop

Actions