scsh-users
[Top] [All Lists]

Re: dump-scsh-program: image size?

To: scsh@memebeam.org
Subject: Re: dump-scsh-program: image size?
From: Martin Gasbichler <gasbichl@informatik.uni-tuebingen.de>
Date: Tue, 30 Apr 2002 09:28:03 +0200
Cc: scsh@zurich.ai.mit.edu
Sender: gasbichl@informatik.uni-tuebingen.de
>>>>> "Anthony" == Anthony Carrico <scsh@memebeam.org> 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> #t
>> ,exit
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.

-- 
Martin

<Prev in Thread] Current Thread [Next in Thread>