Next Prev Up Top Contents Index

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

Returns nil .

Description

with-output-to-fasl-file is used in conjunction with dump-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.

Naming conventions for FASL files

Machine

Fasl File Extension

Alpha

.afasl

PC/Win32

.fsl

PC/Linux

.ufsl

RS/6000

.ifasl

MIPS

.mfasl

HP-PA

.pfasl

SPARC

.wfasl

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

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 - 13 Jun 2003

Next Prev Up Top Contents Index