thanks both for the reply, I have solved in other way that I'll explain:
For my partcular case the core of the software is a function called at regular intervals, and I choose at boot time what function run (I have defined N function, one for each "mode").
Considering that other N-1 functions will be never called I can safely delete it with
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.
thanks both for the reply, I have solved in other way that I'll explain:
For my partcular case the core of the software is a function called at regular intervals, and I choose at boot time what function run (I have defined N function, one for each "mode").
Considering that other N-1 functions will be never called I can safely delete it with
before the chosen function is called