Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!comp.vuw.ac.nz!waikato.ac.nz!wschou From: wschou@waikato.ac.nz Newsgroups: comp.lang.scheme.c Subject: Scheme->C compiler Message-ID: <1991Feb12.135141.2925@waikato.ac.nz> Date: 12 Feb 91 00:51:40 GMT Organization: University of Waikato, Hamilton, New Zealand Lines: 33 How does one create the Scheme->C compiler from the scheme files directly? I have compiled and linked the c source supplied with the 28 SEP 1990 release and have successfully created a working compiler and interpreter on a SPARC 1 using the patches provided. However, when I use this to recompile the scheme source to C I run into problems. Firstly, there are several syntax errors in the scheme source; in particular in files scsc/misccode, scrt/scrt5.sc, scrt/scdebug.sc so the c files supplied could not have been generated from the given scheme files. When the syntax errors are corrected the c files produced the the original compiler are largely identical with the supplied c files but the files scsc/expform.c, scsc/misccode.c and scsc/readtext.c seem to differ. It is difficult to compare these generated c files with the supplied ones as there are trivial differences in the compiler-generated variables names. The newly created scheme compiler will correctly compile several scheme files but hangs on some including scsc/expform.sc and scrt/scdebug.sc. I have also found the following simple example will not compile either although it does with the original compiler: (module test) (define-external var test) (define var 0) Has anyone else been able to generate a working Scheme->C compiler from the scheme source. Wayne Schou wschou@waikato.ac.nz