This is the mail archive of the
gcc@gcc.gnu.org
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: <13116986595.20030809150235@mail.ru>
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/