Will Espruino support FFI(libffi)

Posted on
  • Some times we need c functions, and jswrap method needs rewrite the c module less or more. FFI?

  • No, I'm afraid it's not going to. When I looked at it, it seemed way too heavyweight - and I'm also not convinced that ARM Thumb is supported?

    Also, I'm not sure what you mean by rewrite, because you can use totally standard C functions (as long as they don't have overly complicated arguments). If someone wrote a script for it then a totally standard C file could be parsed and added without modification - the only issue comes when you try and access arrays/pointers, but you'll have problems with that anyway because of the way Espruino works to make the most of available memory.

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

Will Espruino support FFI(libffi)

Posted by Avatar for Aifer @Aifer

Actions