www.delorie.com/gnu/docs/kawa/kawa_20.html   search  
 
Buy GNU books!


Kawa, the Java-based Scheme system

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

6.1 Compiling Scheme to an archive file

To byte-compile a file `foo.scm' do:
 
(compile-file "foo.scm" "foo")

This will create `foo.zip', which contains byte-compiled "j-code" that implements `foo.scm'.

You can later do:
 
(load "foo")

This will load `foo.zip', which should have the same effect as loading `foo.scm', except you will get the byte-compiled versions.


  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003