Kawa, the Java-based Scheme system

Node:Archive compilation, Next:Files compilation, Previous:Compiling, Up:Compiling

### Compiling Scheme to an archive file

compile-file source-file compiled-archive | Function

Compile the source-file, producing a `.zip` archive compiled-file. For example, to byte-compile a file `foo.scm` do:
              (compile-file "foo.scm" "foo")
This will create `foo.zip`, which contains byte-compiled "j-code". You can move this file around, without worrying about class paths. To load the compiled file, you can later `load` the named file, as in either `(load "foo")` or `(load "foo.zip")`. This should have the same effect as loading `foo.scm`, except you will get the faster byte-compiled versions.