larsbrinkhoff / lbForth

Self-hosting metacompiled Forth, bootstrapping from a few lines of C; targets Linux, Windows, ARM, RISC-V, 68000, PDP-11, asm.js.
GNU General Public License v3.0
414 stars 113 forks source link

Use save-image to write a new executable #53

Open larsbrinkhoff opened 7 years ago

larsbrinkhoff commented 7 years ago

Use the save-image to write a new executable with everything pre-loaded.

pipcet commented 7 years ago

I'm not sure how much of a win it would be for asmjs (all data has to be encoded as javascript and go through the parser), but wasm would definitely benefit.

larsbrinkhoff commented 7 years ago

You are right, not all targets can or should support saving the image.