From: Neil Conway
Subject: CLISP to C?
Date: 
Message-ID: <wJ%M6.122640$2_.38944383@news3.rdc1.on.home.com>
Hi everyone,

Can CLISP compile LISP source to C source code?

I was under the impression it couldn't -- but then I saw this entry in the 
manpage for clisp:

        *.c    C code, compiled from lisp source by clisp

If CLISP can do this, how is it done? Or is the manpage mistaken?

Thanks in advance,

Neil Conway

From: Rob Warnock
Subject: Re: CLISP to C?
Date: 
Message-ID: <9e296a$99247$1@fido.engr.sgi.com>
Neil Conway  <····@klamath.dyndns.org> wrote:
+---------------
| Can CLISP compile LISP source to C source code?
| I was under the impression it couldn't -- but then I saw this entry in the 
| manpage for clisp:
|         *.c    C code, compiled from lisp source by clisp
| If CLISP can do this, how is it done? Or is the manpage mistaken?
+---------------

Uh... I think "somewhat misleading" might be the best phrase.
AFAIK, when CLISP "compiles" it's only to byte codes. But part
of the build-CLISP-from-scratch process is to take certain XXX.d
files and massage them into XXX.c files.  This is done with the
small program "comment5", which is itself built during the build
process. (See "utils/comment5.{c,d}".)


-Rob

-----
Rob Warnock, 31-2-510		····@sgi.com
SGI Network Engineering		<URL:http://reality.sgi.com/rpw3/>
1600 Amphitheatre Pkwy.		Phone: 650-933-1673
Mountain View, CA  94043	PP-ASEL-IA
From: ······@honolulu.ilog.fr
Subject: Re: CLISP to C?
Date: 
Message-ID: <9e3vha$mmv$1@honolulu.ilog.fr>
Neil Conway <····@klamath.dyndns.org> wrote:
> Can CLISP compile LISP source to C source code?
>
> I was under the impression it couldn't -- but then I saw this entry in the 
> manpage for clisp:
>
>         *.c    C code, compiled from lisp source by clisp

CLISP compiles normal Common Lisp code to bytecodes only. Only some FFI
(foreign language interface) forms are transformed to C code. For example,
the only way to portably access the 'errno' system variable is through
some tiny bits of C code.

                           Bruno
From: Randy Sims
Subject: Re: CLISP to C?
Date: 
Message-ID: <2001May18.175337.13055@srs.gov>
······@honolulu.ilog.fr writes:

> ... 
> CLISP compiles normal Common Lisp code to bytecodes only. Only some FFI
> ... 
>                            Bruno

Bruno, have you ever considered making those JVM bytecodes?