[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
new liszt autorun feature
- To: CSVAX.lisp@Berkeley
- Subject: new liszt autorun feature
- From: CSVAX.jkf at Berkeley
- Date: Sun, 8 Mar 81 18:28:23 GMT
- Original-date: 8 Mar 1981 10:28:23-PST
The -r switch to liszt causes it to add a small bootstrap loader to the
beginning of the object file it creates. Such an object file can either
be fasl'ed in to a lisp or executed. If the object file is executed, it
will execute a lisp and that lisp will then fasl in the object file which
caused the lisp to be executed. By setting user-top-level to the name
of a function in the fasl file, you can bypass the interactive top level
of lisp.
Previously the only way to get the effect of an executable lisp program
was to fasl in the object file and dumplisp the entire lisp image. The
problem with this is that each dumped lisp image occupies 900 disk block.
With the -r switch, you can write lisp programs that occupy less disk space
than their equivalents in other languages.
When lisp is searching for the fasl file which executed it, it looks
in all directories in the user's path (getenv 'PATH). This means that
you can put these executable lisp object files in system directories
and anyone can run them just like any other program.