Next Previous Up Top Contents Index

10 The HCL Package

with-output-to-fasl-file

Function

Summary

Sends output to a fasl file on disk.
Package

hcl

Signature

with-output-to-fasl-file (stream pathname &rest options) &body body => nil

Arguments

stream

Stream corresponding to the fasl file to be created.

pathname

Name of the fasl file to be created.

body

Forms, some of which may be dumped.

Values

Returnsnil.

Description

with-output-to-fasl-file is used in conjunction withdump-form to dump selected forms.
LispWorks uses the following naming conventions for fasl files, and it is recommended that you should use them too, to ensure correct operation of load and so on.

Table 10.2 Naming conventions for FASL files

Machine Architecture

Fasl File Extension

Alpha

.afasl

RS/6000

.rfasl

HPPA

.pfasl

DECstation

.dfasl

SPARC

.wfasl

Clipper

.cfasl

386

.3fasl

Other PC

.fsl

You can find the fasl file extension appropriate for your machine by looking at the variablesystem:*binary-file-type*. The variablesystem::*binary-file-types* contains a list of all the file extensions currently recognized byload.
Example

SYSTEM 5 > (with-output-to-fasl-file (s "/tmp/foo.fasl")
     (dump-form '(print 'hello) s)) 
0 
NIL
SYSTEM 6 > (load "/tmp/foo.fasl") 
; Loading fasl file /tmp/foo.fasl
HELLO 
#P"/tmp/foo.wfasl"

See also

dump-form
dump-forms-to-file


LispWorks Reference Manual - 15 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker