RTL/tree (from gcc) and Scheme

Per Bothner per@bothner.com
Sat Aug 9 22:35:00 GMT 2003


Valery A.Khamenya wrote:

>   Q1. were there any efforts on adding Scheme or CommonLisp to a GCC's
>       front ends family?

There is a Scheme front-end to GCC. It's called Kawa:
http://www.gnu.org/software/kawa/Compiling-to-executable.html
It uses Java bytecodes as an intermediate (and executable) format.
(Kawa even includes the beginnings of a Common Lisp front-end.)

>   Q2. Is RTL/Tree suitable for functional languages?

Both may be rather low-level, but trees could be tweaked to
have higher-level constructs that can be "lowered" to gimple.

>   Q2.1. Is RTL/Tree suitable for tail recursion optimizations?

Partial support exists.  General tail-call optimization is trickier.

>   Q2.2. Is RTL/Tree suitable for run-time usage?

No.

>   Q2.3. Is RTL/Tree suitable for having function as a return value?

I don't see why not.
-- 
	--Per Bothner
per@bothner.com   http://per.bothner.com/




More information about the Gcc mailing list