This is the mail archive of the
mailing list for the GCC project.
Re: RTL/tree (from gcc) and Scheme
- From: Per Bothner <per at bothner dot com>
- To: "Valery A.Khamenya" <khamenya at mail dot ru>
- Cc: gcc at gcc dot gnu dot org
- Date: Sat, 09 Aug 2003 13:02:52 -0700
- Subject: Re: RTL/tree (from gcc) and Scheme
- References: <email@example.com>
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:
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?
Q2.3. Is RTL/Tree suitable for having function as a return value?
I don't see why not.