7 ms·
We can run our helloworld sample (https://github.com/Moddable-OpenSource/moddable/tree/public/examples/helloworld https://github.com/Moddable-OpenSource/moddabl
by lprader 8y ago
We can run our helloworld sample (https://github.com/Moddable-OpenSource/moddable/tree/public/examples/helloworld https://github.com/Moddable-OpenSource/moddable/tree/public/...) with the xsbug debugger attached in 6000 bytes of RAM on the ESP8266. 5456 bytes for the stack and heaps, 256 for the dynamic symbol table, and 288 for the alias array.
With the 26KB RAM Duktape needs for "Hello world" we can run apps like the Sensor hub described in this blog post (run on a Thunderboard that only has 32KB of RAM total): http://blog.moddable.tech/blog/moddable-tech-presentation-to-tc-39/ http://blog.moddable.tech/blog/moddable-tech-presentation-to...
- svaarala 8y agoBy default Duktape maintains the built-in objects purely in RAM, but for low footprint targets the built-in objects (and also custom user objects) can be made pure ROM objects which reduces memory usage quite a bit; the lowest startup RAM usage is around 1,5kB, see https://github.com/svaarala/duktape/blob/master/doc/low-memory.rst https://github.com/svaarala/duktape/blob/master/doc/low-memo....