The short answer is no... You could look at how the linux executable is built?
If you're trying to compile for new hardware, the solution is to create a new BOARD.py file in the boards directory and to work from there - there is a small bit of documentation in the readme about it.
You can implement your own version of jshardware.c if the board isn't STM32 based - jshardware.h is basically the hardware abstraction layer. Pretty much everything in src is stuff that you need I'm afraid.
If you're trying to totally remove everything so you just have a JavaScript interpreter, with no REPL and no built-in libraries I think you're going to be in for a hard time I'm afraid.
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.
The short answer is no... You could look at how the linux executable is built?
If you're trying to compile for new hardware, the solution is to create a new
BOARD.py
file in theboards
directory and to work from there - there is a small bit of documentation in the readme about it.You can implement your own version of
jshardware.c
if the board isn't STM32 based -jshardware.h
is basically the hardware abstraction layer. Pretty much everything insrc
is stuff that you need I'm afraid.If you're trying to totally remove everything so you just have a JavaScript interpreter, with no REPL and no built-in libraries I think you're going to be in for a hard time I'm afraid.