This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RTL/tree (from gcc) and Scheme


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/



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]