Re: info request for prescheme compilr
Michael Sperber <[email protected]> Tue, 12 Oct 2010 09:29:29 +0200
| Newsgroups | gmane.lisp.scheme.scheme48 |
|---|---|
| Message-ID | <[email protected]> |
"Michael J. Barillier" <[email protected]> writes: > I've been reading through the Prescheme code included in scheme48 and > have been unsuccessful with getting a simple test proc compiled. I'd > hacked up a build script similar to what's in the makefile but keep > getting unknown symbol errors. Is a trivial example available? > (e.g. compile `(define (hello) "hello world")' to C.) For instance, you coul put this in the `ps-compiler' directory: --- compile-fact-test.scm --- (config '(load "../scheme/prescheme/interface.scm")) (config '(load "../scheme/prescheme/package-defs.scm")) (exec '(load "load-ps-compiler.scm")) (in 'prescheme-compiler '(run (prescheme-compiler '(fact) '("prescheme/test/package-defs.scm") 'all "prescheme/test/fact.c"))) --- ... fire up Scheme 48 in that directory, and then do ,exec compile-fact-test.scm Hope this helps ... -- Cheers =8-} Mike Friede, Völkerverständigung und überhaupt blabla