Discussion:
info request for prescheme compilr
Michael J. Barillier
2010-10-11 14:59:54 UTC
Permalink
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.)
--
Michael J. Barillier /// http://www.blackwolfinfosys.net/~blackwolf/
_O_| ``Ignorance breeds monsters to fill up the vacancies of the soul
__O| that are unoccupied by the verities of knowledge.''
OOO| -- Horace Mann
Michael Sperber
2010-10-12 07:29:29 UTC
Permalink
Post by Michael J. Barillier
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
Loading...