Skip to content

Byte code snap-shot to save runtime heap #111

Closed
@seanshpark

Description

@seanshpark

IoT.js scripts are growing as development goes on and at the same time, it uses more Jerry heap space.
As of today, IoT.js built-in scripts consume about 64KB memory still more to go. If there is a way to save the heap memory it can give more to IoT.js application.
The idea is like V8's snap-shot;

  1. run Jerry with IoT.js built-in scripts
  2. make Jerry drop byte codes and Literals in to binary
  3. convert that binary to C source so that they exist in .text area (in ROM for embedded devices)
  4. build IoT.js
  5. when IoT.js is executed give snap-shot .text area memory to Jerry

Please add comments about how to make this possible and huddles to overcome.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions