It is quite easy to expose such stuff as inline C code, anything that gcc compiler allows to compile including inline assembly can be used. You can also setup the compiler service on your computer to enable preprocessor or other compiler flags if needed
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.
It is quite easy to expose such stuff as inline C code, anything that gcc compiler allows to compile including inline assembly can be used. You can also setup the compiler service on your computer to enable preprocessor or other compiler flags if needed
see e.g. this https://gist.github.com/fanoush/9227640a869d78d69a799276dff0fb71 or a bit outdated (some patches no longer needed) guide here https://github.com/fanoush/ds-d6/wiki/Espruino-Inline-C