http://download.plt-scheme.org/doc/205/html/mzc/index.htm
C:\Documents and Settings\Imazu\MzScheme>mzc -h
plt\collects\mzscheme\examples\hello.c
の実行テスト
VC7のコンパイラが通るようにする
C:\Documents and Settings\imazu\MzScheme>vcvars32
C:\Documents and Settings\imazu\MzScheme>mzc --cc hello.c MzScheme compiler (mzc) version 205, Copyright (c) 1996-2003 PLT "hello.c": [output to ".\hello.obj"] C:\Documents and Settings\imazu\MzScheme>mzc --ld hello.dll hello.obj MzScheme compiler (mzc) version 205, Copyright (c) 1996-2003 PLT "hello.obj": [output to "hello.dll"] C:\Documents and Settings\imazu\MzScheme>mzscheme Welcome to MzScheme version 205, Copyright (c) 1995-2003 PLT > (load-extension "hello.dll") "Hello, world!" >
上と同じようにCのコンパイラが実行できるようにしておいて
C:\Documents and Settings\Imazu\MzScheme>type hello.ss (begin (display "Hello, World!") (newline)) C:\Documents and Settings\Imazu\MzScheme>mzc --extension hello.ss MzScheme compiler (mzc) version 205, Copyright (c) 1996-2003 PLT "hello.ss": [output to ".\hello.dll"] C:\Documents and Settings\Imazu\MzScheme>mzscheme Welcome to MzScheme version 205, Copyright (c) 1995-2003 PLT > (load-extension "hello.dll") Hello, World! >