compilation - Compiling .scm files with MIT-SCHEME -
well, i'm trying compile simple scheme code using "better" scheme interpreter/compiler mit-scheme:
code.scm:
(declare (usual-integrations)) (define (s x) (* x x)) (display (s 2))
what doing? i'm doing this:
dxhj ~ mit-scheme dxhj ~ (cf "code.scm") ;generating scode file: "s.scm" => "s.bin"... done ;compiling file: "s.bin" => "s.com"... done ;unspecified return value
well, after can't run anything. how can generate .out file?
it seems mit-scheme cannot compile native, stand-alone binaries. there other implementations can this. example, chicken scheme, bigloo , gambit.
Comments
Post a Comment