[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[MIT-Scheme-users] how to compile a file
From: |
xinyou yan |
Subject: |
[MIT-Scheme-users] how to compile a file |
Date: |
Tue, 18 Jan 2011 23:56:08 +0800 |
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] how to compile a file,
xinyou yan <=