Next Prev Up Top Contents Index

2.2 Delivering the program

Having compiled the program, the next step is to attempt delivery using the compiled file.

Programs are delivered with the function deliver . This function takes three mandatory arguments. There are also many optional keyword arguments to help Delivery make the smallest image possible.

You can read more about this function in Delivering your Application. Keywords to the Delivery Function, describes all the optional keywords available.

In this example, we do not use any of them, but just provide the mandatory arguments. They are:

This is the first function called when the application is run.

This is an integer in the range 0 to 5. It controls how much work is done to make the image smaller during delivery. At level 0, little effort is put into making a smaller image, while at level 5 a variety of strategies are employed.

Continuing with the example:

  1. Write a delivery script file ( deliver.lisp ) that loads the program and then call deliver :
  2. (load "hello")
    (deliver 'hello-world "hello" 5 :interface :capi)
    (quit)
  3. Run the lisp image using the script as an init file. For example, on Windows open a DOS window and type:
  4. lispworks-4200.exe -init deliver.lisp

    On UNIX or Linux, type the following into a shell:

    unix% lispworks -init deliver.lisp

    If you want to see the output, you can redirect the output with > to a file or use | , if it works on your system.

  5. Run the application, which is saved in hello on UNIX and hello.exe on Windows.

2.2.1 Further example


LispWorks Delivery User Guide - 11 Dec 2001

Next Prev Up Top Contents Index