Function: compile-file source-file compiled-archive
Compile the
source-file, producing a.ziparchivecompiled-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 laterloadthe 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.