>>>>> "Anthony" == Anthony Carrico <email@example.com> writes:
Anthony> According to the manual, "The heap image created by dump-scsh-program
Anthony> has unused code and data pruned out, so small programs compile to much
Anthony> smaller heap images."
Anthony> bash-2.05a$ scsh
Anthony> Welcome to scsh 0.6.0 (Chinese Democracy)
Anthony> Type ,? for help.
>> (define foo (lambda x (display "hello world\n")))
>> (dump-scsh-program foo "foo.image")
Anthony> Channel closed in dumped image: standard input
Anthony> Channel closed in dumped image: standard output
Anthony> Channel closed in dumped image: standard error
Anthony> Writing foo.image
Anthony> bash-2.05a$ ls -l foo.image
Anthony> -rw-rw-r-- 1 acarrico acarrico 4404020 Apr 27 16:36 foo.image
Anthony> Is this considered small? Or am I missing some trick?
It's only considered "smaller". The image cannot be smaller than the
image which is shipped with scsh (prefix/lib/scsh/scsh.image). Your
image is pretty close to it.
Big images are the price you pay for good debugging support and
inclusion of standard libraries. However, we definitely see the need
for a way to dump small images which have only included what you
really need to execute the start procedure.