Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jan 2011 23:33:53 +0800
From:      xinyou yan <yxy.716@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   mit-scheme
Message-ID:  <AANLkTikRaD-NwBmSYJNqC1DeEjs8=eomxrFe2iwZa3d6@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Yesterday I make install the mit-scheme.

And i use some methods  in the  repl.

However. I don't   know  how to compile a  code file

Here is   "   how to compile   "  in  mit-scheme   User=92s Manual



4.1 Compilation Procedures
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 =91foo.scm=92, producing the file =91foo.com=92
(incidentally it will also
produce =91foo.bin=92, =91foo.bci=92, and possibly =91foo.ext=92). If you l=
ater evaluate
(load "foo")
=91foo.com=92 will be loaded rather than =91foo.scm=92.
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 =91foo.scm=92 and generate the file =91../bar/foo.com=92. If
destination is not a
directory, it is the root name of the output:
(cf "foo" "bar")
takes =91foo.scm=92 and generates =91bar.com=92.


I can't understand .
I use  scheme --compile test.asm   It doesn't work;

thank you



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTikRaD-NwBmSYJNqC1DeEjs8=eomxrFe2iwZa3d6>