LispWorks Delivery User Guide > 9 Delivery and Internal Systems > 9.1 Delivery and CLOS > 9.1.2 Special dispatch functions and templates for them

NextPrevUpTopContentsIndex

9.1.2.2 Incorporating the templates into the application

A typical measure is to put all the templates generated into a file. You can add new ones to it as you work through the delivery process. The templates must be compiled and loaded into the application before delivery. To do this:

  1. Collect into one template file all the method combination template forms that have been output, so that it looks something like this:
  2. (CLOS::PRE-COMPILE-COMBINED-METHODS ((1 COMMON-LISP:NIL) COMMON-LISP:NIL
     
        (COMMON-LISP:MULTIPLE-VALUE-PROG1 (CLOS::_CALL-METHOD_)
     
                              (CLOS::_CALL-METHOD_)
     
                              (CLOS::_CALL-METHOD_))))
     
    (CLOS::DEFINE-PRE-TEMPLATES
     
      CLOS::DEMAND-CACHING-DCODE-MISS-FUNCTION (5 COMMON-LISP:NIL (4)))
     
    (CLOS::DEFINE-PRE-TEMPLATES
     
      CLOS::DEMAND-CACHING-DCODE-MISS-FUNCTION (6 COMMON-LISP:NIL (4)))

    ...

    No matter how many times the template form is printed, it only needs to be included in the template file once.

  3. In the LispWorks image, compile the template file.
  4. Load the compiled template file into the image (along with the application and library files) before delivery.

LispWorks Delivery User Guide - 22 Dec 2009

NextPrevUpTopContentsIndex