I am new to scheme.
I install mit-scheme in freebsd

I have done some compute in repl
But I don't know  how to compile a file !

I use scheme --compile test.scm

it doesn't work.

I have seen the user'manual

cf filename [destination]
[procedure]
This is the program that transforms a source-code file into
native-code binary form.
If destination is not given, as in
(cf "foo")
cf compiles the file ‘foo.scm’, producing the file ‘foo.com’
(incidentally it will also
produce ‘foo.bin’, ‘foo.bci’, and possibly ‘foo.ext’). If you later evaluate
(load "foo")
‘foo.com’ will be loaded rather than ‘foo.scm’.
If destination is given, it says where the output files should go. If
this argument is a
directory, they go in that directory, e.g.:
(cf "foo" "../bar/")
will take ‘foo.scm’ and generate the file ‘../bar/foo.com’. If
destination is not a
directory, it is the root name of the output:
(cf "foo" "bar")
takes ‘foo.scm’ and generates ‘bar.com’.



It make me confuse

thankyou

_______________________________________________
MIT-Scheme-users mailing list
MIT-Scheme-users@gnu.org
http://lists.gnu.org/mailman/listinfo/mit-scheme-users

Reply via email to