scsh-users
[Top] [All Lists]

Re: scsh-hlink ?

To: scsh-news@martigny.ai.mit.edu
Subject: Re: scsh-hlink ?
From: Tom Ivar Helbekkmo <tih+news@Hamartun.Priv.NO>
Date: 06 Jun 1998 13:14:49 +0200
Organization: University of Bergen, Norway
Resent-to: scsh-list@martigny.ai.mit.edu
Bulent Murtezaoglu <bm@acm.org> writes:

> Scsh v. 0.5.1 under Linux.  I don't seem to have the scsh-hlink
> program mentioned in the manual (p 144).  I installed the package
> without problems (./configure; make; make install).  What am I
> missing?

It's not there.  Or, rather, it's there, but it's not called that.
You'll find it as scsh-0.5.1/scsh/static.scm, and you can copy it
as-is to /usr/local/bin/scsh-hlink or whatever.

As for how to use it, using Olin's web server as an example, here's
what I now have at the top of that package's main file, server.scm:

;;; Scheme Underground Web Server -*- Scheme -*-
;;; Olin Shivers

;;; To run this thing as-is, put this at the top of the file:
;;;     #!/usr/local/bin/scsh \
;;;     -lm modules.scm -lm toothless.scm -dm -o http-top -e top -s
;;;     !#
;;; and simply make the file executable.

;;; To compile as a heap-image:
;;;     ,open http-top
;;;     (dump-scsh-program top "server")
;;; then insert a #! trigger.

;;; Specifically, I figured out that this is the way to do it:
;;;     % scsh -lm modules.scm -lm toothless.scm -lm server.scm -o http-top
;;;     > ,open http-top
;;;     > (dump-scsh-program top "server.image")
;;;     > ,exit
;;; Insert the trigger, if you want to run the image directly, at the top:
;;;     #!/usr/local/lib/scsh/scshvm \
;;;     -o /usr/local/lib/scsh/scshvm -i
;;; Then, to make a directly executable image (good for memory use and gc):
;;;     % scsh-hlink -i server.image -o server
;;; Wait a long, long time for this to finish, and you've got an executable!

-tih
-- 
Popularity is the hallmark of mediocrity.  --Niles Crane, "Frasier"

<Prev in Thread] Current Thread [Next in Thread>
  • Re: scsh-hlink ?, Tom Ivar Helbekkmo <=